mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-27 00:55:16 -07:00
feat(config): add configuration window (#70)
This commit is contained in:
@@ -21,3 +21,12 @@ export function shouldQuitOnWindowAllClosedForTrayState(options: {
|
||||
if (options.hasTray) return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
export function shouldQuitOnMpvShutdownForTrayState(options: {
|
||||
managedPlayback: boolean;
|
||||
backgroundMode: boolean;
|
||||
hasTray: boolean;
|
||||
}): boolean {
|
||||
// managedPlayback marks process ownership; tray/background only affect window-close policy.
|
||||
return options.managedPlayback;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user