hotkeys: (HACK) don't set a shortcut for the screenshot hotkey

This should make it work again as intended (I have no idea why)
I wasn't able to find the root of the problem, but it's most probably somewhere in hotkey_registry

I'll probably have to rebase, btw
This commit is contained in:
VolcaEM
2020-07-06 07:18:01 +02:00
committed by GitHub
parent 52882a93a5
commit 97e3abebfc

View File

@@ -684,8 +684,12 @@ void GMainWindow::InitializeHotkeys() {
ui.action_Show_Status_Bar->setShortcutContext(
hotkey_registry.GetShortcutContext(main_window, toggle_status_bar));
// This is a hack which should be removed if and when a
// proper solution is found
/*
ui.action_Capture_Screenshot->setShortcut(
hotkey_registry.GetKeySequence(main_window, capture_screenshot));
*/
ui.action_Capture_Screenshot->setShortcutContext(
hotkey_registry.GetShortcutContext(main_window, capture_screenshot));