File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
desktop/electron/middleware/adb Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11import fs from 'node:fs'
22import path from 'node:path'
3- import { adbKeyboardApkPath } from '$electron/configs/index.js'
3+ import { adbKeyboardApkPath , getDefaultAdbPath } from '$electron/configs/index.js'
44import electronStore from '$electron/helpers/store/index.js'
55import { Adb } from '@devicefarmer/adbkit'
66import dayjs from 'dayjs'
@@ -24,7 +24,9 @@ electronAPI.ipcRenderer.on('quit-before', () => {
2424 processManager . kill ( )
2525} )
2626
27- electronStore . onDidChange ( 'common.adbPath' , async ( value , oldValue ) => {
27+ electronStore . onDidChange ( 'common.adbPath' , async ( ...args ) => {
28+ const [ value , oldValue = getDefaultAdbPath ( ) ] = args
29+
2830 if ( value === oldValue ) {
2931 return false
3032 }
You can’t perform that action at this time.
0 commit comments