From b2a1b172e266d5f05093a7edafa59d6ce53315f2 Mon Sep 17 00:00:00 2001
From: Marco Rodolfi <marco.rodolfi@tuta.io>
Date: Thu, 22 Jun 2023 12:54:41 +0200
Subject: Fix: export V2 to plugins

---
 frontend/src/components/settings/pages/developer/index.tsx | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

(limited to 'frontend/src/components/settings/pages/developer/index.tsx')

diff --git a/frontend/src/components/settings/pages/developer/index.tsx b/frontend/src/components/settings/pages/developer/index.tsx
index ddd1745d..c0a8ca9e 100644
--- a/frontend/src/components/settings/pages/developer/index.tsx
+++ b/frontend/src/components/settings/pages/developer/index.tsx
@@ -17,6 +17,7 @@ import Logger from '../../../../logger';
 import { installFromURL } from '../../../../store';
 import { useSetting } from '../../../../utils/hooks/useSetting';
 import { getSetting } from '../../../../utils/settings';
+import { FileSelectionType } from '../../../modals/filepicker';
 import RemoteDebuggingSettings from '../general/RemoteDebugging';
 
 const logger = new Logger('DeveloperIndex');
@@ -27,7 +28,16 @@ const installFromZip = async () => {
     logger.error('The default path has not been found!');
     return;
   }
-  window.DeckyPluginLoader.openFilePicker(path, true, undefined, true, ['zip'], false, false).then((val) => {
+  window.DeckyPluginLoader.openFilePickerV2(
+    path,
+    true,
+    true,
+    undefined,
+    ['zip'],
+    false,
+    false,
+    FileSelectionType.FILE,
+  ).then((val) => {
     const url = `file://${val.path}`;
     console.log(`Installing plugin locally from ${url}`);
     installFromURL(url);
-- 
cgit v1.2.3

