Stop asking for a restart after the machine has restarted
Release / release (push) Successful in 27s

CoreDesktop only removes reboot-needed at the start of the next update, so
the restart item stayed after a reboot. Ignore the flag when it was written
before the current boot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-30 19:39:27 -07:00
co-authored by Claude Opus 5.5
parent 3e5d23c25f
commit af81a8ccc5
3 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -345,7 +345,7 @@ class Indicator extends PanelMenu.Button {
this._header.versionLabel.text = version ?? (Cli.isInstalled()
? 'Version unknown' : 'CoreDesktop isn\'t installed');
this._rebootNeeded = GLib.file_test(Cli.REBOOT_NEEDED, GLib.FileTest.EXISTS);
this._rebootNeeded = Cli.rebootNeeded();
this._lastUpdate = Cli.mtime(Cli.PACMAN_UPDATE_LOG);
const names = await Cli.installedSiblings();