File tree 1 file changed +7
-1
lines changed
toolkit/tools/imagegen/attendedinstaller/views/diskview/manualpartitionwidget
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -255,6 +255,7 @@ func (mp *ManualPartitionWidget) HandleInput(event *tcell.EventKey) *tcell.Event
255
255
return tcell .NewEventKey (tcell .KeyTab , 0 , tcell .ModNone )
256
256
case tcell .KeyEsc :
257
257
mp .pages .HidePage (addPartitionPage )
258
+ mp .refreshTitle ()
258
259
}
259
260
} else {
260
261
// The front page is the partition table
@@ -309,9 +310,14 @@ func (mp *ManualPartitionWidget) Primitive() tview.Primitive {
309
310
return mp .pages
310
311
}
311
312
312
- // SetSystemDeviceIndex updates the system device used
313
+ // SetSystemDeviceIndex updates the system device used.
314
+ // Panics if the space label cannot be updated.
313
315
func (mp * ManualPartitionWidget ) SetSystemDeviceIndex (index int ) {
314
316
mp .deviceIndex = index
317
+
318
+ err := mp .updateSpaceLabel ()
319
+ logger .PanicOnError (err , "Failed to update space label" )
320
+
315
321
mp .flex .SetTitle (fmt .Sprintf (uitext .DiskAdvanceTitleFmt , mp .systemDevices [mp .deviceIndex ].DevicePath ))
316
322
}
317
323
You can’t perform that action at this time.
0 commit comments