Adding functionality for the open speaker settings button

master
WolverinDEV 2021-03-25 12:30:31 +01:00
parent 4c90237a36
commit 687054e07c
1 changed files with 4 additions and 0 deletions

View File

@ -529,6 +529,10 @@ export function initializeControlBarController(events: Registry<ControlBarEvents
infoHandler.getCurrentHandler()?.setSpeakerMuted(!event.enabled); infoHandler.getCurrentHandler()?.setSpeakerMuted(!event.enabled);
}); });
events.on("action_open_speaker_settings", () => {
global_client_actions.fire("action_open_window_settings", { defaultCategory: "audio-speaker" });
});
events.on("action_toggle_subscribe", event => { events.on("action_toggle_subscribe", event => {
settings.setValue(Settings.KEY_CLIENT_STATE_SUBSCRIBE_ALL_CHANNELS, event.subscribe); settings.setValue(Settings.KEY_CLIENT_STATE_SUBSCRIBE_ALL_CHANNELS, event.subscribe);