Skip to content

Commit

Permalink
fix(updater): 修正不可以自动更新的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gmlayer0 committed Jun 8, 2023
1 parent e8c2a25 commit 795fbf8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ app.on('ready', async () => {
}
} else {
if (ficusApp.preferences.getItem('autoUpdate')) {
updater(ficusApp, app, isOsx)
updater(app, isOsx)
}
}

Expand Down
5 changes: 3 additions & 2 deletions src/main/update/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -446,7 +446,7 @@ const Updater = {
}
}

const UpdateMain = function (ficusApp, app, isOsx){
const UpdateMain = function (app, isOsx){
Updater.init({
api: 'https://ficus.world/update/version.json',
server: false,
Expand All @@ -459,7 +459,8 @@ const UpdateMain = function (ficusApp, app, isOsx){
return false
}
Updater.progress((state) => { })
dialog.showMessageBoxSync(ficusApp.getFocusWin(), {
dialog.showMessageBoxSync
dialog.showMessageBoxSync({
type: 'warning',
title: '更新提醒',
buttons: ['确定'],
Expand Down

0 comments on commit 795fbf8

Please sign in to comment.