Skip to content

Commit

Permalink
Don't refresh SKIF on dir changes
Browse files Browse the repository at this point in the history
This solves SKIF being stuck in an endless rendering loop
because it keps getting woken up due to file changes
  • Loading branch information
Aemony committed Feb 14, 2024
1 parent 593dd0e commit fd3486f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/stores/Steam/steam_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1173,7 +1173,7 @@ SKIF_Steam_areLibrariesSignaled (void)
bool countFiles = (library.frame_last_scanned == 0);

// If we detect any changes, delay checking the details for a couple of seconds
if (library.watch.isSignaled (library.path, UITab_Library))
if (library.watch.isSignaled (library.path)) // UITab_Library // We do not wake up when unfocused as that causes SKIF to constantly be active during downloads/updates
{
library.signaled = SKIF_Util_timeGetTime ( );

Expand Down
4 changes: 2 additions & 2 deletions src/tabs/library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4809,7 +4809,7 @@ SKIF_UI_Tab_DrawLibrary (void)
RepopulateGames = true;

// Sets up a wait object on UITab_Library
if (SKIF_Epic_ManifestWatch.isSignaled (SKIF_Epic_AppDataPath, UITab_Library) && _registry.bLibraryEpic)
if (SKIF_Epic_ManifestWatch.isSignaled (SKIF_Epic_AppDataPath) && _registry.bLibraryEpic)
RepopulateGames = true;

// Sets up a wait object on UITab_Library
Expand Down Expand Up @@ -5559,7 +5559,7 @@ SKIF_UI_Tab_DrawLibrary (void)
selection.dir_watch.reset ( );

if (! pApp->install_dir.empty())
selection.dir_watch.isSignaled (pApp->install_dir, UITab_Library);
selection.dir_watch.isSignaled (pApp->install_dir);
}

int availableWorker = -1;
Expand Down

0 comments on commit fd3486f

Please sign in to comment.