Skip to content

Commit 2ce617f

Browse files
Display Update Available
- Will display update available and update and wait for user to either restart or quit. (Need to look into a way that doesn't force the user to just download it and install)
1 parent 316c980 commit 2ce617f

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

src/autoUpdater.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ api.autoUpdaterCallback((status) => {
77
console.log(status);
88
if (status === 'Update Available'){
99
updateOverlay_el.style.display = 'flex';
10+
if (selectUserTypeOverlay_el.style.display !== 'none'){
11+
selectUserTypeOverlay_el.style.display = 'none'
12+
}
1013
}
1114
if (status === 'Update Downloaded'){
1215
updateControlDiv_el.style.display = 'grid';

src/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
<h2>Update Available!</h2>
1414
</div>
1515
<div id="updateControlDiv" style="display: none; grid-template-columns: 1fr 1fr; grid-gap: 5px;">
16-
<button id="startUpdateButton" class="input-button">Update</button>
17-
<button id="quitUpdateButton" class="input-button">Quit</button>
16+
<button id="startUpdateButton" class="input-button">Update & Restart</button>
17+
<button id="quitUpdateButton" class="input-button">Update & Quit</button>
1818
</div>
1919
</div>
2020
</div>

0 commit comments

Comments
 (0)