Hide tags input field on save dialog on MacOS

This commit is contained in:
trevor-signal 2024-08-13 18:10:00 -04:00 committed by GitHub
parent 2ee8053b06
commit a973c27fd4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 };
}