mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2025-01-31 11:53:50 +01:00
perf: ♻️ Optimization updater
This commit is contained in:
parent
bfdad9e8de
commit
61ccd4a469
@ -28,7 +28,10 @@ export default (mainWindow) => {
|
||||
// 安装更新
|
||||
ipcMain.on('quit-and-install', () => {
|
||||
console.log('ipcMain:quit-and-install')
|
||||
setImmediate(() => autoUpdater.quitAndInstall())
|
||||
setImmediate(() => {
|
||||
app.isQuiting = true
|
||||
autoUpdater.quitAndInstall()
|
||||
})
|
||||
})
|
||||
|
||||
// 设置自动下载为false(默认为true,检测到有更新就自动下载)
|
||||
|
@ -24,9 +24,6 @@ export const useDeviceStore = defineStore({
|
||||
|
||||
return this.config
|
||||
},
|
||||
setList(data) {
|
||||
this.list = data
|
||||
},
|
||||
getLabel(device, param) {
|
||||
if (!device) {
|
||||
return ''
|
||||
@ -54,6 +51,9 @@ export const useDeviceStore = defineStore({
|
||||
|
||||
return value
|
||||
},
|
||||
setList(data) {
|
||||
this.list = data
|
||||
},
|
||||
async getList() {
|
||||
const res = await window.adbkit.getDevices()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user