Skip to content

Commit 7a712f0

Browse files
committed
add rebuilding hotkey map on tab change
1 parent 224606d commit 7a712f0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/forms/settings-dialog.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ void PluginWindow::tab_changed(const int tab) const
816816
ui->cb_obs_output_action->setCurrentIndex(0);
817817
ui->mapping_lbl_device_name->setText(ui->list_midi_dev->currentItem()->text());
818818
}
819+
Utils::build_hotkey_map();
819820
clear_table();
820821
load_table();
821822
this->ui->table_mapping->resizeColumnsToContents();

src/utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ QString Utils::translate_action(ActionsClass::Actions action)
926926
}
927927
void Utils::build_hotkey_map() {
928928
hotkey_map.clear();
929-
929+
hotkey_name_map.clear();
930930
obs_enum_hotkeys(
931931
[](void *data, obs_hotkey_id id, obs_hotkey_t *hotkey) {
932932
QString item(obs_hotkey_get_name(hotkey));

0 commit comments

Comments
 (0)