diff options
Diffstat (limited to 'src/actions')
-rw-r--r-- | src/actions/actions.cpp | 12 | ||||
-rw-r--r-- | src/actions/actions.h | 1 |
2 files changed, 13 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 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 |