We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba36405 commit 21b3f10Copy full SHA for 21b3f10
src/components/Sidebar.vue
@@ -92,7 +92,6 @@
92
</q-item-section>
93
</q-item>
94
<q-item
95
- v-if="$q.platform.is.electron"
96
clickable
97
v-ripple
98
:title="$t('Close the application')"
src/layouts/MainLayout.vue
@@ -215,9 +215,7 @@ export default defineComponent({
215
function onExit() {
216
const hasUnsavedChanges = store.getters["editor/hasUnsavedChanges"];
217
const exitApp = () => {
218
- if (window.electron) {
219
- window.electron.close();
220
- }
+ window.close();
221
};
222
askConfirmOrExecute(hasUnsavedChanges, exitApp);
223
}
0 commit comments