From 3e9eabe9df8a8412d0cccd583001440a2075bb61 Mon Sep 17 00:00:00 2001 From: Masato TOYOSHIMA Date: Sat, 14 Dec 2024 22:03:46 +0900 Subject: [PATCH] If you selected "Manual Partitioning", Scan for partition information. --- src/modules/partition/gui/ChoicePage.cpp | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/modules/partition/gui/ChoicePage.cpp b/src/modules/partition/gui/ChoicePage.cpp index 2c7b8376c..a7665bbbc 100644 --- a/src/modules/partition/gui/ChoicePage.cpp +++ b/src/modules/partition/gui/ChoicePage.cpp @@ -586,8 +586,21 @@ ChoicePage::applyActionChoice( InstallChoice choice ) &ChoicePage::doAlongsideSetupSplitter, Qt::UniqueConnection ); break; - case InstallChoice::NoChoice: case InstallChoice::Manual: + if ( m_core->isDirty() ) + { + ScanningDialog::run( + QtConcurrent::run( + [ = ] + { + QMutexLocker locker( &m_coreMutex ); + m_core->revertDevice( selectedDevice() ); + } ), + [] {}, + this ); + } + break; + case InstallChoice::NoChoice: break; } updateNextEnabled();