Skip to content

Commit

Permalink
refactor(api/window.js): set 'prefersDarkMode' in dialog methods
Browse files Browse the repository at this point in the history
  • Loading branch information
jwerle committed Jun 13, 2024
1 parent f95596f commit 2a5ce96
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions api/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ export class ApplicationWindow {
const result = await ipc.request('window.showFileSystemPicker', {
type: 'open',
...options
}, {
useExtensionIPCIfAvailable: true
})

if (result.err) {
Expand All @@ -370,6 +372,8 @@ export class ApplicationWindow {
const result = await ipc.request('window.showFileSystemPicker', {
type: 'save',
...options
}, {
useExtensionIPCIfAvailable: true
})

if (result.err) {
Expand All @@ -389,6 +393,8 @@ export class ApplicationWindow {
type: 'open',
allowDirs: true,
...options
}, {
useExtensionIPCIfAvailable: true
})

if (result.err) {
Expand Down

0 comments on commit 2a5ce96

Please sign in to comment.