mirror of
https://github.com/cmclark00/retro-imager.git
synced 2025-05-18 16:05:21 +01:00
Rework OS Customization
In the new flow, it doesn't make sense to _not_ save the OS customization parameters, so remove the ComboBox. Additionally, our data model was failing to notify the UI of changes to the saved settings state. Due to time constraints, I'm not able to resolve the binding in the 'correct' manner, but I can introduce a makeshift status signalling mechanism to prevent UI inconsistency.
This commit is contained in:
parent
50449158bc
commit
ecf992cb62
4 changed files with 76 additions and 44 deletions
|
@ -1039,6 +1039,7 @@ void ImageWriter::setSavedCustomizationSettings(const QVariantMap &map)
|
|||
_settings.setValue(key, map.value(key));
|
||||
}
|
||||
_settings.endGroup();
|
||||
_settings.sync();
|
||||
}
|
||||
|
||||
QVariantMap ImageWriter::getSavedCustomizationSettings()
|
||||
|
@ -1060,10 +1061,12 @@ void ImageWriter::clearSavedCustomizationSettings()
|
|||
_settings.beginGroup("imagecustomization");
|
||||
_settings.remove("");
|
||||
_settings.endGroup();
|
||||
_settings.sync();
|
||||
}
|
||||
|
||||
bool ImageWriter::hasSavedCustomizationSettings()
|
||||
{
|
||||
_settings.sync();
|
||||
_settings.beginGroup("imagecustomization");
|
||||
bool result = !_settings.childKeys().isEmpty();
|
||||
_settings.endGroup();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue