Skip to content

Commit 21b3f10

Browse files
committed
fix: close app
1 parent ba36405 commit 21b3f10

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/components/Sidebar.vue

-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@
9292
</q-item-section>
9393
</q-item>
9494
<q-item
95-
v-if="$q.platform.is.electron"
9695
clickable
9796
v-ripple
9897
:title="$t('Close the application')"

src/layouts/MainLayout.vue

+1-3
Original file line numberDiff line numberDiff line change
@@ -215,9 +215,7 @@ export default defineComponent({
215215
function onExit() {
216216
const hasUnsavedChanges = store.getters["editor/hasUnsavedChanges"];
217217
const exitApp = () => {
218-
if (window.electron) {
219-
window.electron.close();
220-
}
218+
window.close();
221219
};
222220
askConfirmOrExecute(hasUnsavedChanges, exitApp);
223221
}

0 commit comments

Comments
 (0)