mirror of
https://github.com/khoj-ai/khoj.git
synced 2024-11-23 23:48:56 +01:00
Show title bar in Khoj desktop app on Windows
This commit is contained in:
parent
312528d471
commit
76cb543347
1 changed files with 5 additions and 2 deletions
|
@ -354,12 +354,14 @@ async function deleteAllFiles () {
|
||||||
|
|
||||||
let firstRun = true;
|
let firstRun = true;
|
||||||
let win = null;
|
let win = null;
|
||||||
|
let titleBarStyle = process.platform === 'win32' ? 'default' : 'hidden';
|
||||||
const createWindow = (tab = 'chat.html') => {
|
const createWindow = (tab = 'chat.html') => {
|
||||||
win = new BrowserWindow({
|
win = new BrowserWindow({
|
||||||
width: 800,
|
width: 800,
|
||||||
height: 800,
|
height: 800,
|
||||||
show: false,
|
show: false,
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: titleBarStyle,
|
||||||
|
autoHideMenuBar: true,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
nodeIntegration: true,
|
nodeIntegration: true,
|
||||||
|
@ -515,7 +517,8 @@ function openAboutWindow() {
|
||||||
aboutWindow = new BrowserWindow({
|
aboutWindow = new BrowserWindow({
|
||||||
width: 400,
|
width: 400,
|
||||||
height: 400,
|
height: 400,
|
||||||
titleBarStyle: 'hidden',
|
titleBarStyle: titleBarStyle,
|
||||||
|
autoHideMenuBar: true,
|
||||||
show: false,
|
show: false,
|
||||||
webPreferences: {
|
webPreferences: {
|
||||||
preload: path.join(__dirname, 'preload.js'),
|
preload: path.join(__dirname, 'preload.js'),
|
||||||
|
|
Loading…
Reference in a new issue