2
0
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:
Faris Ansari 2020-01-28 23:44:59 +05:30
parent fba7df7e10
commit cec79e55d0
2 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@
class="h-screen flex flex-col font-sans overflow-hidden antialiased"
>
<WindowsTitleBar
v-if="['Windows', 'Linux'].includes(platform)"
v-if="platform === 'Windows'"
@close="reloadMainWindowOnSettingsClose"
/>
<Desk class="flex-1" v-if="activeScreen === 'Desk'" />

View File

@ -11,6 +11,7 @@ import { getMainWindowSize } from './screenSize';
const isDevelopment = process.env.NODE_ENV !== 'production';
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
// be closed automatically when the JavaScript object is garbage collected.
@ -35,7 +36,7 @@ function createWindow() {
webPreferences: {
nodeIntegration: true
},
frame: false,
frame: isLinux,
resizable: true
});