summaryrefslogtreecommitdiff
path: root/src/actions
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions')
-rw-r--r--src/actions/actions.cpp14
-rw-r--r--src/actions/actions.h1
2 files changed, 15 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index 73c57985c..ae9a21b76 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -78,6 +78,8 @@
#include "listeners/updatestatuslistener.h"
+#include "resources/resourcemanager.h"
+
#include "resources/map/map.h"
#include "utils/gettext.h"
@@ -542,4 +544,16 @@ impHandler0(who)
return true;
}
+impHandler0(cleanGraphics)
+{
+ ResourceManager::getInstance()->clearCache();
+
+ if (debugChatTab)
+ {
+ // TRANSLATORS: clear graphics command message
+ debugChatTab->chatLog(_("Cache cleaned"));
+ }
+ return true;
+}
+
} // namespace Actions
diff --git a/src/actions/actions.h b/src/actions/actions.h
index db895d644..39017c33a 100644
--- a/src/actions/actions.h
+++ b/src/actions/actions.h
@@ -57,6 +57,7 @@ namespace Actions
decHandler(ipcToggle);
decHandler(where);
decHandler(who);
+ decHandler(cleanGraphics);
} // namespace Actions
#undef decHandler