Updater: meldet fehlendes Release statt 'aktuell', vergleicht zusätzlich mit Version im Repository
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+4
-1
@@ -731,7 +731,10 @@ async function viewSettings(page) {
|
||||
const chk = h(`<button class="btn">${ICONS.refresh}Jetzt nach Updates suchen</button>`);
|
||||
chk.onclick = async () => {
|
||||
chk.disabled = true;
|
||||
try { await save(formValues(updFields)); const r = await call('update:check'); if (r.available) showUpdate(r); else toast(`MrTerm ist aktuell (${r.current}).`, 'ok'); } catch {}
|
||||
try { await save(formValues(updFields)); const r = await call('update:check'); if (r.available) showUpdate(r);
|
||||
else if (r.repoVersion) toast(`Im Repository liegt Version ${r.repoVersion}, aber dafür gibt es noch kein Release mit Installationspaketen. Installiert: ${r.current}.`, 'error');
|
||||
else if (r.noRelease) toast('Im Repository gibt es noch keine Releases.', 'error');
|
||||
else toast(`MrTerm ist aktuell (${r.current}).`, 'ok'); } catch {}
|
||||
chk.disabled = false;
|
||||
};
|
||||
updCard.append(updFields, chk);
|
||||
|
||||
Reference in New Issue
Block a user