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) => {
|
async (_event: Electron.Event, logText: string) => {
|
||||||
const { filePath } = await dialog.showSaveDialog({
|
const { filePath } = await dialog.showSaveDialog({
|
||||||
defaultPath: 'debuglog.txt',
|
defaultPath: 'debuglog.txt',
|
||||||
|
showsTagField: false,
|
||||||
});
|
});
|
||||||
if (filePath) {
|
if (filePath) {
|
||||||
await writeFile(filePath, logText);
|
await writeFile(filePath, logText);
|
||||||
|
@ -2979,9 +2980,11 @@ ipc.handle('show-save-dialog', async (_event, { defaultPath }) => {
|
||||||
|
|
||||||
const { canceled, filePath: selectedFilePath } = await dialog.showSaveDialog(
|
const { canceled, filePath: selectedFilePath } = await dialog.showSaveDialog(
|
||||||
mainWindow,
|
mainWindow,
|
||||||
{ defaultPath }
|
{
|
||||||
|
defaultPath,
|
||||||
|
showsTagField: false,
|
||||||
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
if (canceled || selectedFilePath == null) {
|
if (canceled || selectedFilePath == null) {
|
||||||
return { canceled: true };
|
return { canceled: true };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue