mirror of
https://github.com/frappe/books.git
synced 2024-11-10 07:40:55 +00:00
fix: Show native titlebar in Linux
This commit is contained in:
parent
fba7df7e10
commit
cec79e55d0
@ -4,7 +4,7 @@
|
|||||||
class="h-screen flex flex-col font-sans overflow-hidden antialiased"
|
class="h-screen flex flex-col font-sans overflow-hidden antialiased"
|
||||||
>
|
>
|
||||||
<WindowsTitleBar
|
<WindowsTitleBar
|
||||||
v-if="['Windows', 'Linux'].includes(platform)"
|
v-if="platform === 'Windows'"
|
||||||
@close="reloadMainWindowOnSettingsClose"
|
@close="reloadMainWindowOnSettingsClose"
|
||||||
/>
|
/>
|
||||||
<Desk class="flex-1" v-if="activeScreen === 'Desk'" />
|
<Desk class="flex-1" v-if="activeScreen === 'Desk'" />
|
||||||
|
@ -11,6 +11,7 @@ import { getMainWindowSize } from './screenSize';
|
|||||||
|
|
||||||
const isDevelopment = process.env.NODE_ENV !== 'production';
|
const isDevelopment = process.env.NODE_ENV !== 'production';
|
||||||
const isMac = process.platform === 'darwin';
|
const isMac = process.platform === 'darwin';
|
||||||
|
const isLinux = process.platform === 'linux';
|
||||||
|
|
||||||
// Keep a global reference of the window object, if you don't, the window will
|
// Keep a global reference of the window object, if you don't, the window will
|
||||||
// be closed automatically when the JavaScript object is garbage collected.
|
// be closed automatically when the JavaScript object is garbage collected.
|
||||||
@ -35,7 +36,7 @@ function createWindow() {
|
|||||||
webPreferences: {
|
webPreferences: {
|
||||||
nodeIntegration: true
|
nodeIntegration: true
|
||||||
},
|
},
|
||||||
frame: false,
|
frame: isLinux,
|
||||||
resizable: true
|
resizable: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user