summaryrefslogtreecommitdiff
path: root/src/actions/actions.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
committerAndrei Karas <akaras@inbox.ru>2014-08-25 12:54:39 +0300
commit4c0d3dc62399e35c288cb82dfbf3f8811328f06c (patch)
tree24db2449750712363aa59c5b20807976a90f0771 /src/actions/actions.cpp
parente5ac29f35d9a0ede9d1263ab1bb7c20568dbdd67 (diff)
downloadmv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.gz
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.bz2
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.tar.xz
mv-4c0d3dc62399e35c288cb82dfbf3f8811328f06c.zip
Move chat command /cleanfonts into actions.
Diffstat (limited to 'src/actions/actions.cpp')
-rw-r--r--src/actions/actions.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/actions/actions.cpp b/src/actions/actions.cpp
index ae9a21b76..188a46ea1 100644
--- a/src/actions/actions.cpp
+++ b/src/actions/actions.cpp
@@ -556,4 +556,16 @@ impHandler0(cleanGraphics)
return true;
}
+impHandler0(cleanFonts)
+{
+ if (gui)
+ gui->clearFonts();
+ if (debugChatTab)
+ {
+ // TRANSLATORS: clear fonts cache message
+ debugChatTab->chatLog(_("Cache cleaned"));
+ }
+ return true;
+}
+
} // namespace Actions