diff options
Diffstat (limited to 'src/gui/gui.cpp')
-rw-r--r-- | src/gui/gui.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index 66ada43b2..32f042ad2 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -140,6 +140,7 @@ Gui::Gui() : mForegroundColor(theme->getColor(ThemeColorId::TEXT, 255)), mForegroundColor2(theme->getColor(ThemeColorId::TEXT_OUTLINE, 255)), mTime(0), + mTime10(0), mCustomCursor(false), mDoubleClick(true) { @@ -352,6 +353,13 @@ void Gui::slowLogic() if (ipc) ipc->flush(); mTime = time; + + if (time > mTime10 || mTime10 - time > 10) + { + mTime10 = time + 10; + if (resourceManager) + resourceManager->cleanOrphans(); + } } BLOCK_END("Gui::slowLogic") |