mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Only checked for updates if configured in options
This commit is contained in:
4
index.js
4
index.js
@ -7,6 +7,7 @@ const { autoUpdater } = require("electron-updater");
|
||||
|
||||
const { setApplicationMenu } = require("./menu");
|
||||
const {
|
||||
autoUpdate,
|
||||
getEnabledPlugins,
|
||||
isAppVisible,
|
||||
store,
|
||||
@ -149,8 +150,9 @@ app.on("activate", () => {
|
||||
app.on("ready", () => {
|
||||
setApplicationMenu();
|
||||
mainWindow = createMainWindow();
|
||||
if (!is.dev()) {
|
||||
setUpTray(app, mainWindow);
|
||||
|
||||
if (!is.dev() && autoUpdate()) {
|
||||
autoUpdater.checkForUpdatesAndNotify();
|
||||
autoUpdater.on("update-available", () => {
|
||||
const dialogOpts = {
|
||||
|
||||
Reference in New Issue
Block a user