mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 02:35:33 +08:00
Minor fixes in simulator selector
This commit is contained in:
@@ -125,7 +125,7 @@ namespace BlackGui
|
||||
|
||||
void CSimulatorSelector::setToLastSelection()
|
||||
{
|
||||
const CSimulatorInfo simulator = (m_mode == RadioButtons || m_mode == CheckBoxes) ?
|
||||
const CSimulatorInfo simulator = (m_mode == RadioButtons || m_mode == ComboBox) ?
|
||||
m_currentSimulator.get() :
|
||||
m_currentSimulators.get();
|
||||
this->setValue(simulator);
|
||||
@@ -136,9 +136,10 @@ namespace BlackGui
|
||||
if (sGui && sGui->supportsContexts() && sGui->getIContextSimulator())
|
||||
{
|
||||
const CSimulatorPluginInfo pluginInfo = sGui->getIContextSimulator()->getSimulatorPluginInfo();
|
||||
if (!this->isSingleSelection()) { this->setMode(RadioButtons); }
|
||||
|
||||
if (pluginInfo.isValid())
|
||||
{
|
||||
this->setMode(RadioButtons);
|
||||
this->setReadOnly(makeReadOnly);
|
||||
this->setValue(pluginInfo.getSimulator());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user