Skip to content

Commit

Permalink
Set electron dialogs to modal by default (#13043)
Browse files Browse the repository at this point in the history
Signed-off-by: Zoltán Béres <[email protected]>
  • Loading branch information
zole40 authored Nov 10, 2023
1 parent a88d39e commit 5fcb2f5
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class ElectronFileDialogService extends DefaultFileDialogService {
result.title = props.title;
result.buttonLabel = props.openLabel;
result.maxWidth = props.maxWidth;
result.modal = props.modal;
result.modal = props.modal ?? true;
result.openFiles = props.canSelectFiles;
result.openFolders = props.canSelectFolders;
result.selectMany = props.canSelectMany;
Expand Down Expand Up @@ -141,7 +141,7 @@ export class ElectronFileDialogService extends DefaultFileDialogService {
result.title = props.title;
result.buttonLabel = props.saveLabel;
result.maxWidth = props.maxWidth;
result.modal = props.modal;
result.modal = props.modal ?? true;

if (props.filters) {
result.filters = [];
Expand Down

0 comments on commit 5fcb2f5

Please sign in to comment.