feat: changed file close dialog from confirm to ask
The dialog when closing an unsaved file should be more clear
mellbacon committed
Jun 27, 2023 at 18:47 UTC
bb926d513fb074d60e582eecdf887caafeaf0020
1 file changed
+1
-1
src/lib/Tab/Tab.ts
+1
-1
@@ -105,7 +105,7 @@ export class Tab {
105
if (this.activeid === tabid) {
106
for (let i = 0; i <= this.tablist.length - 1; i++) {
107
if (this.tablist[i].id === tabid && !this.tablist[i].saved) {
108
- if (await dialog.confirm(`Do you want to save ${this.tablist[i].label} before closing?`, {type: "warning"})) {
108
+ if (await dialog.ask(`Do you want to save ${this.tablist[i].label} before closing?`, {type: "warning"})) {
109
await saveFile();
110
}
111
}