mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-06 05:31:58 +00:00
gui: Fix disk config menu description
The saveMedias variable is responsible for selecting between loading the page or resetting page state on cancel button clicks. When clicking the confirm button, saveMedias must be set to nil to prevent flipping the logic for loading the page and cancel button clicks. This logic inversion led to incorrect menu descriptions for the disk config page. Signed-off-by: John Akre <john.w.akre@intel.com>
This commit is contained in:
@@ -934,6 +934,7 @@ func (disk *DiskConfig) GetTitle() string {
|
||||
// StoreChanges will store this pages changes into the model
|
||||
func (disk *DiskConfig) StoreChanges() {
|
||||
var installBlockDevice *storage.BlockDevice
|
||||
disk.saveMedias = nil
|
||||
|
||||
if disk.safeButton.GetActive() {
|
||||
disk.model.ClearInstallSelected()
|
||||
|
||||
Reference in New Issue
Block a user