Skip to content

Commit f059f07

Browse files
committed
fix
1 parent a25b353 commit f059f07

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

src/settings/terminalSettings.js

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ import {
66
} from "components/terminal";
77
import toast from "components/toast";
88
import alert from "dialogs/alert";
9+
import confirm from "dialogs/confirm";
910
import loader from "dialogs/loader";
1011
import fonts from "lib/fonts";
1112
import appSettings from "lib/settings";
1213
import FileBrowser from "pages/fileBrowser";
1314
import helpers from "utils/helpers";
14-
import confirm from "dialogs/confirm";
1515

1616
export default function terminalSettings() {
1717
const title = strings["terminal settings"];
@@ -214,22 +214,25 @@ export default function terminalSettings() {
214214
return;
215215

216216
case "uninstall":
217-
const confirmation = await confirm(strings.confirm, "Are you sure you want to uninstall the terminal?");
217+
const confirmation = await confirm(
218+
strings.confirm,
219+
"Are you sure you want to uninstall the terminal?",
220+
);
218221
if (confirmation) {
219222
loader.showTitleLoader();
220223
Terminal.uninstall()
221224
.then(() => {
222225
loader.removeTitleLoader();
223226
alert(
224-
strings.success.toUpperCase(),
225-
"Terminal uninstalled successfully.",
226-
);
227-
})
228-
.catch((error) => {
229-
loader.removeTitleLoader();
230-
console.error("Terminal uninstall failed:", error);
231-
helpers.error(error);
232-
});
227+
strings.success.toUpperCase(),
228+
"Terminal uninstalled successfully.",
229+
);
230+
})
231+
.catch((error) => {
232+
loader.removeTitleLoader();
233+
console.error("Terminal uninstall failed:", error);
234+
helpers.error(error);
235+
});
233236
}
234237
return;
235238

0 commit comments

Comments
 (0)