Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
ximper-system-updater
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ximper Linux
ximper-system-updater
Commits
795c7e32
Commit
795c7e32
authored
Mar 29, 2026
by
Roman Alifanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show 'you can close this window' when reboot is not required
parent
197e62f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
update_process.go
ui/pages/update_process.go
+9
-4
No files found.
ui/pages/update_process.go
View file @
795c7e32
...
...
@@ -75,21 +75,26 @@ func (p *UpdateProcessPage) UpdateProgress(event model.EventData) {
}
func
(
p
*
UpdateProcessPage
)
ShowComplete
(
success
bool
,
showReboot
bool
)
{
if
success
{
switch
{
case
success
&&
showReboot
:
p
.
finishStatusPage
.
SetTitle
(
"Updating complete!"
)
p
.
finishStatusPage
.
SetIconName
(
"face-smile-big-symbolic"
)
p
.
finishStatusPage
.
SetDescription
(
"Click on button below to restart device"
)
}
else
if
showReboot
{
case
success
:
p
.
finishStatusPage
.
SetTitle
(
"Updating complete!"
)
p
.
finishStatusPage
.
SetIconName
(
"face-smile-big-symbolic"
)
p
.
finishStatusPage
.
SetDescription
(
"You can close this window"
)
case
showReboot
:
p
.
finishStatusPage
.
SetTitle
(
"Update Partially Complete"
)
p
.
finishStatusPage
.
SetIconName
(
"dialog-warning-symbolic"
)
p
.
finishStatusPage
.
SetDescription
(
"Some updates failed, but system packages were updated. A reboot is recommended."
)
}
else
{
default
:
p
.
finishStatusPage
.
SetTitle
(
"Update Failed"
)
p
.
finishStatusPage
.
SetIconName
(
"dialog-error-symbolic"
)
p
.
finishStatusPage
.
SetDescription
(
"The update encountered an error. Please check the logs."
)
}
p
.
rebootBtn
.
SetVisible
(
showReboot
||
success
)
p
.
rebootBtn
.
SetVisible
(
showReboot
)
// Copy log to finish page
start
:=
p
.
logBuffer
.
StartIter
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment