@@ -9,14 +9,15 @@ import { DarkThemeBGColor, LightThemeBGColor } from '../utils';
9
9
export class ThemedWindow {
10
10
constructor ( options : ThemedWindow . IOptions ) {
11
11
this . _isDarkTheme = options . isDarkTheme ;
12
+ this . _closable = options . closable !== false ;
12
13
this . _window = new BrowserWindow ( {
13
14
parent : options . parent ,
14
15
modal : options . modal ,
15
16
title : options . title ,
16
17
width : options . width ,
17
18
height : options . height ,
18
19
show : false ,
19
- closable : options . closable !== false ,
20
+ closable : this . _closable ,
20
21
resizable : options . resizable !== false ,
21
22
titleBarStyle : 'hidden' ,
22
23
frame : process . platform === 'darwin' ,
@@ -120,7 +121,7 @@ export class ThemedWindow {
120
121
<div class="page-container">
121
122
<jlab-dialog-titlebar id="title-bar" data-title="${
122
123
this . _window . title
123
- } " data-closable="${ this . _window . closable . toString ( ) } " class="${
124
+ } " data-closable="${ this . _closable . toString ( ) } " class="${
124
125
this . _isDarkTheme ? 'app-ui-dark' : ''
125
126
} "></jlab-dialog-titlebar>
126
127
<div id="jlab-dialog-body" class="jlab-dialog-body">
@@ -136,6 +137,7 @@ export class ThemedWindow {
136
137
}
137
138
138
139
private _isDarkTheme : boolean ;
140
+ private _closable : boolean ;
139
141
private _window : BrowserWindow ;
140
142
}
141
143
0 commit comments