Skip to content

Commit

Permalink
fix: only one window at a time during startup.
Browse files Browse the repository at this point in the history
fixes #283
  • Loading branch information
okdistribute committed Feb 12, 2020
1 parent 7143779 commit 22c2ac6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,9 @@ function notifyReady (done) {
var IS_TEST = process.env.NODE_ENV === 'test'
if (IS_TEST) win.setSize(1000, 800, false)
if (argv.debug) win.webContents.openDevTools()

win.maximize()
win.setFullScreen(true)
splash.destroy()
win.show()
done()
Expand Down
2 changes: 1 addition & 1 deletion splash.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
<body>
<div id="welcome" class='mapeo-container'>
<div id="screen-1">
<img src='static/mapeo_256x256.png' />
<h1>
Cargando...
</h1>
<img src='static/mapeo_256x256.png' />
</div>
</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions src/main/window-state.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ const electron = require('electron')
const store = require('../store')

const defaults = {
maximize: true,
fullscreen: true,
maximize: false,
fullscreen: false,
defaultWidth: 800,
defaultHeight: 600,
isMaximized: true
Expand Down
2 changes: 1 addition & 1 deletion static/css/base.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
:root {
--main-bg-color: rgb(57, 82, 123);
--main-bg-color: rgba(51, 102, 255);
--secondary-bg-color: blue;
--main-bg-color-alpha: rgba(57, 82, 123, 0.5);
--visible-z-index: 100;
Expand Down

0 comments on commit 22c2ac6

Please sign in to comment.