mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +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 { setApplicationMenu } = require("./menu");
|
||||||
const {
|
const {
|
||||||
|
autoUpdate,
|
||||||
getEnabledPlugins,
|
getEnabledPlugins,
|
||||||
isAppVisible,
|
isAppVisible,
|
||||||
store,
|
store,
|
||||||
@ -149,8 +150,9 @@ app.on("activate", () => {
|
|||||||
app.on("ready", () => {
|
app.on("ready", () => {
|
||||||
setApplicationMenu();
|
setApplicationMenu();
|
||||||
mainWindow = createMainWindow();
|
mainWindow = createMainWindow();
|
||||||
if (!is.dev()) {
|
|
||||||
setUpTray(app, mainWindow);
|
setUpTray(app, mainWindow);
|
||||||
|
|
||||||
|
if (!is.dev() && autoUpdate()) {
|
||||||
autoUpdater.checkForUpdatesAndNotify();
|
autoUpdater.checkForUpdatesAndNotify();
|
||||||
autoUpdater.on("update-available", () => {
|
autoUpdater.on("update-available", () => {
|
||||||
const dialogOpts = {
|
const dialogOpts = {
|
||||||
|
|||||||
Reference in New Issue
Block a user