Skip to content

Commit

Permalink
Fixed a few bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
Aemony committed Feb 11, 2024
1 parent ca9474d commit 758660b
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions src/tabs/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5294,7 +5294,11 @@ SKIF_UI_Tab_DrawLibrary (void)
PLOG_VERBOSE << "Selected app ID " << app.second.id << " from platform ID " << (int)app.second.store << ".";
selection.appid = app.second.id;
selection.store = app.second.store;
selection.category = app.second.skif.category;
selection.category = (app.second.skif.pinned > 50)
? "Favorites (pinned)" // Workaround to not expand Favorites tab on launch
: (app.second.skif.pinned > 0 || (app.second.skif.pinned == -1 && app.second.steam.shared.favorite == 1))
? "Favorites"
: app.second.skif.category;
search_selection.id = selection.appid;
search_selection.store = selection.store;
update = true;
Expand Down Expand Up @@ -6058,13 +6062,16 @@ SKIF_UI_Tab_DrawLibrary (void)
pinned_top++;
else if (pinned_top > 0)
{
ImGui::SetCursorPosY (
ImGui::GetCursorPosY ( )
- (fOffset / 2.0f)
- 2.0f * SKIF_ImGui_GlobalDPIScale
);
if (! _registry.bUIBorders)
{
ImGui::SetCursorPosY (
ImGui::GetCursorPosY ( )
// - (fOffset / 2.0f)
- 1.0f * SKIF_ImGui_GlobalDPIScale
);

ImGui::Separator ( );
ImGui::Separator ( );
}

ImGui::EndChild ( );

Expand Down Expand Up @@ -6251,7 +6258,11 @@ SKIF_UI_Tab_DrawLibrary (void)

selection.appid = app.second.id;
selection.store = app.second.store;
selection.category = app.second.skif.category;
selection.category = (app.second.skif.pinned > 50)
? "Favorites (pinned)" // Workaround to not expand Favorites tab on launch
: (app.second.skif.pinned > 0 || (app.second.skif.pinned == -1 && app.second.steam.shared.favorite == 1))
? "Favorites"
: app.second.skif.category;
selected = true;

// Only update the last selected value if we're not in hidden view
Expand Down

0 comments on commit 758660b

Please sign in to comment.