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