mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-18 17:16:01 +00:00
removed dependencies on electron remote
This commit is contained in:
@@ -7,7 +7,7 @@ import { showSnackbarSuccess } from './snackbar';
|
||||
export async function openArchiveFolder() {
|
||||
const electron = getElectron();
|
||||
const ext = get(extensions);
|
||||
const filePaths = electron.remote.dialog.showOpenDialogSync(electron.remote.getCurrentWindow(), {
|
||||
const filePaths = await electron.showOpenDialog({
|
||||
properties: ['openDirectory'],
|
||||
});
|
||||
const linkedFolder = filePaths && filePaths[0];
|
||||
|
||||
Reference in New Issue
Block a user