Skip to content

Commit

Permalink
[MS] Create the mountpoint folder before adding a link to it in the s…
Browse files Browse the repository at this point in the history
…idebar
  • Loading branch information
Max-7 committed Nov 4, 2024
1 parent 4d89609 commit 69cb9ca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions client/electron/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { WindowToPageChannel } from './communicationChannels';
import AppUpdater, { UpdaterState, createAppUpdater } from './updater';
import { electronIsDev } from './utils';
import { WinRegistry } from './winRegistry';
import fs from 'fs';

const CHECK_UPDATE_INTERVAL = 1000 * 60 * 60; // 1 hour
const ALLOWED_URL_LIST = [
Expand Down Expand Up @@ -213,6 +214,7 @@ export class ElectronCapacitorApp {
}

updateMountpoint(path: string): void {
fs.mkdirSync(path, { recursive: true });
this.winRegistry.addMountpointToQuickAccess(path, this.getIconPaths().tray);
}

Expand Down
1 change: 1 addition & 0 deletions newsfragments/8820.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Ensure that the mountpoint folder exists before adding a link to it in the sidebar

0 comments on commit 69cb9ca

Please sign in to comment.