@@ -78,8 +78,7 @@ function initTray(win: BrowserWindow) {
7878 label : "Open" ,
7979 click ( ) {
8080 win . show ( ) ;
81- } ,
82- enabled : false
81+ }
8382 } ,
8483 {
8584 label : "About" ,
@@ -122,14 +121,6 @@ function initTray(win: BrowserWindow) {
122121 tray . setToolTip ( "Vesktop" ) ;
123122 tray . setContextMenu ( trayMenu ) ;
124123 tray . on ( "click" , ( ) => win . show ( ) ) ;
125-
126- win . on ( "show" , ( ) => {
127- trayMenu . items [ 0 ] . enabled = false ;
128- } ) ;
129-
130- win . on ( "hide" , ( ) => {
131- trayMenu . items [ 0 ] . enabled = true ;
132- } ) ;
133124}
134125
135126async function clearData ( win : BrowserWindow ) {
@@ -374,11 +365,11 @@ function createMainWindow() {
374365 removeSettingsListeners ( ) ;
375366 removeVencordSettingsListeners ( ) ;
376367
377- const { staticTitle, transparencyOption, enableMenu, discordWindowsTitleBar } = Settings . store ;
368+ const { staticTitle, transparencyOption, enableMenu, customTitleBar } = Settings . store ;
378369
379370 const { frameless } = VencordSettings . store ;
380371
381- const noFrame = frameless === true || ( process . platform === "win32" && discordWindowsTitleBar === true ) ;
372+ const noFrame = frameless === true || customTitleBar === true ;
382373
383374 const win = ( mainWin = new BrowserWindow ( {
384375 show : false ,
@@ -398,7 +389,7 @@ function createMainWindow() {
398389 backgroundMaterial : transparencyOption
399390 } ) ,
400391 // Fix transparencyOption for custom discord titlebar
401- ...( discordWindowsTitleBar &&
392+ ...( customTitleBar &&
402393 transparencyOption &&
403394 transparencyOption !== "none" && {
404395 transparent : true
0 commit comments