Преглед изворни кода

UI: Correctly unregister Virtual Camera & Source Toolbar hotkeys

Fixes an issue where the hotkey entries would be duplicated
(including in the UI hotkey list) on every Profile switch.
Matt Gajownik пре 5 година
родитељ
комит
5f5b220048
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      UI/window-basic-main.cpp

+ 2 - 0
UI/window-basic-main.cpp

@@ -2452,7 +2452,9 @@ void OBSBasic::ClearHotkeys()
 	obs_hotkey_pair_unregister(recordingHotkeys);
 	obs_hotkey_pair_unregister(pauseHotkeys);
 	obs_hotkey_pair_unregister(replayBufHotkeys);
+	obs_hotkey_pair_unregister(vcamHotkeys);
 	obs_hotkey_pair_unregister(togglePreviewHotkeys);
+	obs_hotkey_pair_unregister(contextBarHotkeys);
 	obs_hotkey_unregister(forceStreamingStopHotkey);
 	obs_hotkey_unregister(togglePreviewProgramHotkey);
 	obs_hotkey_unregister(transitionHotkey);