mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
Option to start at login
This commit is contained in:
6
index.js
6
index.js
@ -12,6 +12,7 @@ const {
|
||||
isAppVisible,
|
||||
isTrayEnabled,
|
||||
store,
|
||||
startAtLogin,
|
||||
} = require("./store");
|
||||
const { fileExists, injectCSS } = require("./plugins/utils");
|
||||
const { isTesting } = require("./utils/testing");
|
||||
@ -170,6 +171,11 @@ app.on("ready", () => {
|
||||
mainWindow = createMainWindow();
|
||||
setUpTray(app, mainWindow);
|
||||
|
||||
// Autostart at login
|
||||
app.setLoginItemSettings({
|
||||
openAtLogin: startAtLogin(),
|
||||
});
|
||||
|
||||
if (!is.dev() && autoUpdate()) {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
autoUpdater.on("update-available", () => {
|
||||
|
||||
Reference in New Issue
Block a user