UI: Fix hotkeys working even when disabled in focus

Fixes a bug where the hotkey inject would trigger hotkeys despite
hotkeys being disabled when in focus.
This commit is contained in:
jp9000
2019-07-22 01:11:34 -07:00
parent 887857b71d
commit 9ca1e85f7d
2 changed files with 11 additions and 0 deletions

View File

@@ -107,6 +107,11 @@ public:
void EnableInFocusHotkeys(bool enable);
inline bool HotkeysEnabledInFocus() const
{
return enableHotkeysInFocus;
}
inline QMainWindow *GetMainWindow() const { return mainWindow.data(); }
inline config_t *GlobalConfig() const { return globalConfig; }