Skip to content
Permalink
Browse files

hide overlay until player data is loaded

  • Loading branch information...
Manuel-777 committed Sep 22, 2019
1 parent 57f9d51 commit 62a249b0c0e5734539aa8d5b4fb211a1034ea47f
Showing with 5 additions and 2 deletions.
  1. +2 −2 main.js
  2. +3 −0 window_overlay_v3/index.css
@@ -572,9 +572,9 @@ function createOverlayWindow() {

overlay.webContents.once("dom-ready", function() {
//We need to wait for the overlay to be initialized before we interact with it
const display = electron.screen.getPrimaryDisplay();
//const display = electron.screen.getPrimaryDisplay();
// display.workArea does not include the taskbar
overlay.setBounds(display.bounds);
//overlay.setBounds(display.bounds);
overlay.webContents.send("settings_updated");
// only show overlay after its ready
// TODO does this work with Linux transparency???
@@ -19,6 +19,9 @@ body {
}

.overlay_master_wrapper {
/* Debug;
background-color: rgba(255, 0, 0, 0.11);
*/
width: 100%;
height: 100%;
}

0 comments on commit 62a249b

Please sign in to comment.
You can’t perform that action at this time.