From 44d4df31e1b6765c259cbf328234f8d21b2ac709 Mon Sep 17 00:00:00 2001 From: jp9000 Date: Thu, 23 May 2019 04:15:22 -0700 Subject: [PATCH] UI: Fix "Toggle Preview" hotkeys duplicating Fixes "Toggle Preview" hotkeys from duplicating when profiles are switched. The hotkeys were not being unregistered. --- UI/window-basic-main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/UI/window-basic-main.cpp b/UI/window-basic-main.cpp index 648913dbf..679c43cd9 100644 --- a/UI/window-basic-main.cpp +++ b/UI/window-basic-main.cpp @@ -2209,6 +2209,7 @@ void OBSBasic::ClearHotkeys() obs_hotkey_pair_unregister(streamingHotkeys); obs_hotkey_pair_unregister(recordingHotkeys); obs_hotkey_pair_unregister(replayBufHotkeys); + obs_hotkey_pair_unregister(togglePreviewHotkeys); obs_hotkey_unregister(forceStreamingStopHotkey); obs_hotkey_unregister(togglePreviewProgramHotkey); obs_hotkey_unregister(transitionHotkey);