mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 03:25:46 +00:00
Add a "Mute Audio" hotkey
This commit is contained in:
parent
fbc30df353
commit
3fcf2f201c
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