mirror of
https://github.com/Mastermindzh/tidal-hifi.git
synced 2025-09-10 22:04:53 +02:00
Implement minimized action to hide the application on close (#60)
* Implement minimzed action to hide the application on close instead of closing it. * Add close event on the tray icon * Add all items in the menu (not only Show/Close app) * Changes on mainWindow. Toggle instead of Open/Close pair button
This commit is contained in:
@@ -21,6 +21,7 @@ function refreshSettings() {
|
||||
mpris.checked = store.get(settings.mpris);
|
||||
enableCustomHotkeys.checked = store.get(settings.enableCustomHotkeys);
|
||||
enableDiscord.checked = store.get(settings.enableDiscord);
|
||||
minimizeOnClose.checked = store.get(settings.minimizeOnClose);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -80,6 +81,7 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||
port = get("port");
|
||||
menuBar = get("menuBar");
|
||||
trayIcon = get("trayIcon");
|
||||
minimizeOnClose = get("minimizeOnClose");
|
||||
mpris = get("mprisCheckbox");
|
||||
enableCustomHotkeys = get("enableCustomHotkeys");
|
||||
enableDiscord = get("enableDiscord");
|
||||
@@ -95,4 +97,5 @@ window.addEventListener("DOMContentLoaded", () => {
|
||||
addInputListener(mpris, settings.mpris);
|
||||
addInputListener(enableCustomHotkeys, settings.enableCustomHotkeys);
|
||||
addInputListener(enableDiscord, settings.enableDiscord);
|
||||
addInputListener(minimizeOnClose, settings.minimizeOnClose);
|
||||
});
|
||||
|
Reference in New Issue
Block a user