From 4c0d3dc62399e35c288cb82dfbf3f8811328f06c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 25 Aug 2014 12:54:39 +0300 Subject: Move chat command /cleanfonts into actions. --- src/actions/actions.cpp | 12 ++++++++++++ src/actions/actions.h | 1 + 2 files changed, 13 insertions(+) (limited to 'src/actions') 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 diff --git a/src/actions/actions.h b/src/actions/actions.h index 39017c33a..9b9c148b8 100644 --- a/src/actions/actions.h +++ b/src/actions/actions.h @@ -58,6 +58,7 @@ namespace Actions decHandler(where); decHandler(who); decHandler(cleanGraphics); + decHandler(cleanFonts); } // namespace Actions #undef decHandler -- cgit v1.2.3-70-g09d2