moved electron-specific parts of tabby-local into tabby-electron

This commit is contained in:
Eugene Pankov
2023-03-19 12:39:31 +01:00
parent 2e72774548
commit 35ca7015c8
52 changed files with 120 additions and 110 deletions

View File

@@ -234,6 +234,15 @@ export class ElectronPlatformService extends PlatformService {
handler(err)
})
}
async pickDirectory (): Promise<string> {
return (await this.electron.dialog.showOpenDialog(
this.hostWindow.getWindow(),
{
properties: ['openDirectory', 'showHiddenFiles'],
},
)).filePaths[0]
}
}
class ElectronFileUpload extends FileUpload {