flying-lobster 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/src/main/updater.js
CHANGED
|
@@ -228,12 +228,16 @@ async function startUpdate() {
|
|
|
228
228
|
}
|
|
229
229
|
|
|
230
230
|
/**
|
|
231
|
-
* Notify
|
|
231
|
+
* Notify all renderer processes of state changes
|
|
232
232
|
*/
|
|
233
233
|
function notifyRenderer() {
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
234
|
+
const { BrowserWindow } = require('electron');
|
|
235
|
+
// Send to all open windows (main + settings)
|
|
236
|
+
BrowserWindow.getAllWindows().forEach(win => {
|
|
237
|
+
if (win && !win.isDestroyed()) {
|
|
238
|
+
win.webContents.send('update-state-changed', { ...updateState });
|
|
239
|
+
}
|
|
240
|
+
});
|
|
237
241
|
}
|
|
238
242
|
|
|
239
243
|
/**
|
|
@@ -192,11 +192,10 @@
|
|
|
192
192
|
}
|
|
193
193
|
.gw-item:last-child { border-bottom: none; }
|
|
194
194
|
.gw-item:hover {
|
|
195
|
-
|
|
196
|
-
transform: translateX(4px);
|
|
195
|
+
/* hover removed */
|
|
197
196
|
}
|
|
198
197
|
.gw-item:hover::before {
|
|
199
|
-
|
|
198
|
+
/* hover removed */
|
|
200
199
|
}
|
|
201
200
|
.gw-item .info { flex: 1; }
|
|
202
201
|
.gw-item .name {
|
|
@@ -386,11 +385,10 @@
|
|
|
386
385
|
}
|
|
387
386
|
.shortcut-item:last-child { border-bottom: none; }
|
|
388
387
|
.shortcut-item:hover {
|
|
389
|
-
|
|
390
|
-
transform: translateX(4px);
|
|
388
|
+
/* hover removed */
|
|
391
389
|
}
|
|
392
390
|
.shortcut-item:hover::before {
|
|
393
|
-
|
|
391
|
+
/* hover removed */
|
|
394
392
|
}
|
|
395
393
|
.shortcut-item .label {
|
|
396
394
|
font-size: 13px;
|
package/src/renderer/settings.js
CHANGED
|
@@ -336,9 +336,9 @@ function renderUpdateState(state) {
|
|
|
336
336
|
updateActions.innerHTML = '';
|
|
337
337
|
checkUpdateBtn.disabled = false;
|
|
338
338
|
checkUpdateBtn.textContent = 'Check for Updates';
|
|
339
|
-
} else if (state.
|
|
339
|
+
} else if (state.currentVersion) {
|
|
340
340
|
updateStatusItem.style.display = '';
|
|
341
|
-
updateStatusText.innerHTML = `<span style="color: var(--success);">✓</span> You're up to date (${state.
|
|
341
|
+
updateStatusText.innerHTML = `<span style="color: var(--success);">✓</span> You're up to date (${state.currentVersion})`;
|
|
342
342
|
updateActions.innerHTML = '';
|
|
343
343
|
checkUpdateBtn.disabled = false;
|
|
344
344
|
checkUpdateBtn.textContent = 'Check for Updates';
|
|
@@ -374,7 +374,7 @@ checkUpdateBtn.addEventListener('click', async () => {
|
|
|
374
374
|
const version = await window.api.getAppVersion();
|
|
375
375
|
$('#app-version').textContent = `v${version}`;
|
|
376
376
|
|
|
377
|
-
//
|
|
378
|
-
|
|
379
|
-
|
|
377
|
+
// Don't show update status on load - only after user clicks "Check for Updates"
|
|
378
|
+
// Hide the status item initially
|
|
379
|
+
updateStatusItem.style.display = 'none';
|
|
380
380
|
})();
|