@@ -2965,11 +2965,11 @@ SKIF_UI_Tab_DrawViewer (void)
29652965 }
29662966
29672967 // Identify when the folder was changed outside of the app
2968- // PLOG_VERBOSE << "_current_folder.watch was signaled! Delay checking the folder for another 5000 ms...";
2968+ // PLOG_VERBOSE << "_current_folder.watch was signaled! Delay checking the folder for another 500 ms...";
29692969 if (_current_folder.watch .isSignaled (_current_folder.folder_path ))
29702970 dwLastSignaled = SKIF_Util_timeGetTime ();
29712971
2972- if (dwLastSignaled != 0 && dwLastSignaled + 5000 < SKIF_Util_timeGetTime ())
2972+ if (dwLastSignaled != 0 && dwLastSignaled + 500 < SKIF_Util_timeGetTime ())
29732973 {
29742974 if (! _current_folder.fileList .fileDeleted )
29752975 _current_folder.workerThread (true );
@@ -2988,7 +2988,7 @@ SKIF_UI_Tab_DrawViewer (void)
29882988 PLOG_VERBOSE << " _current_folder.fileList.getActiveFile(): " << _current_folder.fileList .getActiveFile ()->path ;
29892989
29902990 // If the selected file was changed from within _current_folder, also update dragDroppedFilePath
2991- if (_current_folder.fileList .getActiveFile () != nullptr &&
2991+ if (! _current_folder.fileList .getActiveFile ()-> path . empty () &&
29922992 cover.file_info .filename != _current_folder.fileList .getActiveFile ()->filename )
29932993 dragDroppedFilePath = _current_folder.fileList .getActiveFile ()->path ;
29942994
@@ -3000,7 +3000,7 @@ SKIF_UI_Tab_DrawViewer (void)
30003000 // Only apply changes to the scaling method if we actually have an image loaded
30013001 if (cover.pRawTexSRV .p != nullptr )
30023002 {
3003- if (_current_folder. fileList . getActiveFile () != nullptr && ! _current_folder.fileList .getActiveFile ()->path .empty () &&
3003+ if (! _current_folder.fileList .getActiveFile ()->path .empty () &&
30043004 ImGui::GetKeyData (ImGuiKey_Delete)->DownDuration == 0 .0f ) // Delete - Delete the opened image
30053005 _DeleteImage ();
30063006
0 commit comments