mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
IPC: added calls to toggle/open/close the audio panel
This commit is contained in:
@@ -224,6 +224,24 @@ Item {
|
||||
function muteInput() {
|
||||
AudioService.setInputMuted(!AudioService.inputMuted);
|
||||
}
|
||||
function togglePanel() {
|
||||
root.screenDetector.withCurrentScreen(screen => {
|
||||
var panel = PanelService.getPanel("audioPanel", screen);
|
||||
panel?.toggle();
|
||||
});
|
||||
}
|
||||
function openPanel() {
|
||||
root.screenDetector.withCurrentScreen(screen => {
|
||||
var panel = PanelService.getPanel("audioPanel", screen);
|
||||
panel?.open();
|
||||
});
|
||||
}
|
||||
function closePanel() {
|
||||
root.screenDetector.withCurrentScreen(screen => {
|
||||
var panel = PanelService.getPanel("audioPanel", screen);
|
||||
panel?.close();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
|
||||
Reference in New Issue
Block a user