From d2e71c75a2b5e6788cb86eeace035dead509f4cc Mon Sep 17 00:00:00 2001 From: John Akre Date: Tue, 24 Sep 2019 13:53:14 -0700 Subject: [PATCH] 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 --- gui/pages/disk_config.go | 1 + 1 file changed, 1 insertion(+) diff --git a/gui/pages/disk_config.go b/gui/pages/disk_config.go index 769faa2..7dd986d 100644 --- a/gui/pages/disk_config.go +++ b/gui/pages/disk_config.go @@ -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()