File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,15 @@ const BrowserWindow = electron.BrowserWindow;
28
28
let mainWindow ;
29
29
30
30
function createWindow ( ) {
31
- mainWindow = new BrowserWindow ( { width : 20 , height : 20 } ) ;
31
+ mainWindow = new BrowserWindow ( {
32
+ width : 20 ,
33
+ height : 20 ,
34
+ fullscreen : argv . fullscreen
35
+ } ) ;
32
36
mainWindow . setMenu ( null ) ;
37
+ if ( argv . maximized ) {
38
+ mainWindow . maximize ( ) ;
39
+ }
33
40
mainWindow . loadURL ( `file://${ __dirname } /index.html` ) ;
34
41
if ( argv . debug ) {
35
42
mainWindow . webContents . openDevTools ( { detach : true } ) ;
Original file line number Diff line number Diff line change 1
1
module . exports = `Usage: qmlweb-viewer [options] <filename>
2
2
3
3
Options
4
+ --maximized ...................... Run maximized
5
+ --fullscreen ..................... Run fullscreen
4
6
--debug .......................... Open Dev Tools window
5
7
--help ........................... Display help and exit
6
8
` ;
You can’t perform that action at this time.
0 commit comments