mirror of
https://github.com/rvtr/GodMode9i.git
synced 2025-11-02 00:11:07 -04:00
Bug fix: Clear clipboard after deleting file contained in clipboard
This commit is contained in:
parent
f7c4e77d84
commit
5b4c5b3b7a
@ -496,6 +496,12 @@ string browseForFile (void) {
|
|||||||
printf ("Deleting file, please wait...");
|
printf ("Deleting file, please wait...");
|
||||||
}
|
}
|
||||||
remove(entry->name.c_str());
|
remove(entry->name.c_str());
|
||||||
|
char filePath[256];
|
||||||
|
snprintf(filePath, sizeof(filePath), "%s%s", path, entry->name.c_str());
|
||||||
|
if (strcmp(filePath, clipboard) == 0) {
|
||||||
|
clipboardUsed = false; // Disable clipboard restore
|
||||||
|
clipboardOn = false;
|
||||||
|
}
|
||||||
getDirectoryContents (dirContents);
|
getDirectoryContents (dirContents);
|
||||||
fileOffset--;
|
fileOffset--;
|
||||||
pressed = 0;
|
pressed = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user