Hide tags input field on save dialog on MacOS
This commit is contained in:
parent
2ee8053b06
commit
a973c27fd4
1 changed files with 5 additions and 2 deletions
|
@ -2616,6 +2616,7 @@ ipc.on(
|
|||
async (_event: Electron.Event, logText: string) => {
|
||||
const { filePath } = await dialog.showSaveDialog({
|
||||
defaultPath: 'debuglog.txt',
|
||||
showsTagField: false,
|
||||
});
|
||||
if (filePath) {
|
||||
await writeFile(filePath, logText);
|
||||
|
@ -2979,9 +2980,11 @@ ipc.handle('show-save-dialog', async (_event, { defaultPath }) => {
|
|||
|
||||
const { canceled, filePath: selectedFilePath } = await dialog.showSaveDialog(
|
||||
mainWindow,
|
||||
{ defaultPath }
|
||||
{
|
||||
defaultPath,
|
||||
showsTagField: false,
|
||||
}
|
||||
);
|
||||
|
||||
if (canceled || selectedFilePath == null) {
|
||||
return { canceled: true };
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue