Skip to content

Commit

Permalink
fix: preference save relaunch application twice
Browse files Browse the repository at this point in the history
  • Loading branch information
agalwood committed Apr 29, 2023
1 parent af1cc4d commit 0afc010
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
5 changes: 0 additions & 5 deletions src/renderer/components/Preference/Advanced.vue
Original file line number Diff line number Diff line change
Expand Up @@ -741,11 +741,6 @@
'application:auto-hide-window', autoHideWindow)
}
if (checkIsNeedRestart(data)) {
this.$electron.ipcRenderer.send('command',
'application:relaunch')
}
if (checkIsNeedRestart(data)) {
this.$electron.ipcRenderer.send('command', 'application:relaunch')
}
Expand Down
5 changes: 0 additions & 5 deletions src/renderer/components/Preference/Basic.vue
Original file line number Diff line number Diff line change
Expand Up @@ -614,11 +614,6 @@
'application:auto-hide-window', autoHideWindow)
}
if (checkIsNeedRestart(data)) {
this.$electron.ipcRenderer.send('command',
'application:relaunch')
}
if (checkIsNeedRestart(data)) {
this.$electron.ipcRenderer.send('command', 'application:relaunch')
}
Expand Down

0 comments on commit 0afc010

Please sign in to comment.