mirror of
https://github.com/ksyasuda/SubMiner.git
synced 2026-05-13 20:12:54 -07:00
15 lines
303 B
TypeScript
15 lines
303 B
TypeScript
import type { CliArgs } from '../../cli/args';
|
|
|
|
export function shouldEnsureTrayOnStartupForInitialArgs(
|
|
platform: NodeJS.Platform,
|
|
initialArgs: CliArgs | null,
|
|
): boolean {
|
|
if (platform !== 'win32') {
|
|
return false;
|
|
}
|
|
if (initialArgs?.youtubePlay) {
|
|
return false;
|
|
}
|
|
return true;
|
|
}
|