mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: Enable maximise button in Mac
This commit is contained in:
parent
2db4484ab2
commit
2212b007ee
@ -4,11 +4,7 @@
|
||||
:style="sidebarBackground"
|
||||
>
|
||||
<div class="window-no-drag">
|
||||
<WindowControls
|
||||
v-if="platform === 'Mac'"
|
||||
class="px-3 mb-6"
|
||||
:buttons="['close', 'minimize']"
|
||||
/>
|
||||
<WindowControls v-if="platform === 'Mac'" class="px-3 mb-6" />
|
||||
<div class="px-3">
|
||||
<h6 class="text-base font-semibold" @click="$router.push('/')">
|
||||
{{ companyName }}
|
||||
|
@ -32,8 +32,11 @@ export default {
|
||||
methods: {
|
||||
action(name) {
|
||||
if (this.buttons.includes(name)) {
|
||||
this.$emit(name);
|
||||
let window = electron.remote.getCurrentWindow();
|
||||
if (name === 'maximize' && window.isMaximized()) {
|
||||
name = 'unmaximize';
|
||||
}
|
||||
this.$emit(name);
|
||||
window[name]();
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user