Skip to content

Commit

Permalink
add rebuilding hotkey map on tab change
Browse files Browse the repository at this point in the history
  • Loading branch information
cpyarger committed Mar 15, 2021
1 parent 224606d commit 7a712f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/forms/settings-dialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -816,6 +816,7 @@ void PluginWindow::tab_changed(const int tab) const
ui->cb_obs_output_action->setCurrentIndex(0);
ui->mapping_lbl_device_name->setText(ui->list_midi_dev->currentItem()->text());
}
Utils::build_hotkey_map();
clear_table();
load_table();
this->ui->table_mapping->resizeColumnsToContents();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@ QString Utils::translate_action(ActionsClass::Actions action)
}
void Utils::build_hotkey_map() {
hotkey_map.clear();

hotkey_name_map.clear();
obs_enum_hotkeys(
[](void *data, obs_hotkey_id id, obs_hotkey_t *hotkey) {
QString item(obs_hotkey_get_name(hotkey));
Expand Down

0 comments on commit 7a712f0

Please sign in to comment.