Add a "Mute Audio" hotkey
This commit is contained in:
parent
d11baf8bf8
commit
3eb8efc095
6 changed files with 17 additions and 3 deletions
|
@ -736,6 +736,9 @@ void GMainWindow::InitializeHotkeys() {
|
|||
Settings::values.use_docked_mode);
|
||||
dock_status_button->setChecked(Settings::values.use_docked_mode);
|
||||
});
|
||||
connect(hotkey_registry.GetHotkey(main_window, QStringLiteral("Mute Audio"), this),
|
||||
&QShortcut::activated, this,
|
||||
[] { Settings::values.audio_muted = !Settings::values.audio_muted; });
|
||||
}
|
||||
|
||||
void GMainWindow::SetDefaultUIGeometry() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue