mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Hint when only observer mode is enabled because of no simulator attached
This commit is contained in:
committed by
Mat Sutcliffe
parent
5d46017af2
commit
898e8560d9
@@ -28,6 +28,7 @@ namespace BlackGui
|
|||||||
ui(new Ui::CLoginModeButtons)
|
ui(new Ui::CLoginModeButtons)
|
||||||
{
|
{
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
ui->lbl_NoSimulator->setVisible(false);
|
||||||
this->configureLoginModes();
|
this->configureLoginModes();
|
||||||
connect(sGui->getIContextSimulator(), &IContextSimulator::simulatorStatusChanged, this, &CLoginModeButtons::configureLoginModes, Qt::QueuedConnection);
|
connect(sGui->getIContextSimulator(), &IContextSimulator::simulatorStatusChanged, this, &CLoginModeButtons::configureLoginModes, Qt::QueuedConnection);
|
||||||
}
|
}
|
||||||
@@ -86,12 +87,13 @@ namespace BlackGui
|
|||||||
|
|
||||||
if (!sGui->getIContextSimulator() || (!sGui->isDeveloperFlagSet() && !sGui->getIContextSimulator()->isSimulatorSimulating()))
|
if (!sGui->getIContextSimulator() || (!sGui->isDeveloperFlagSet() && !sGui->getIContextSimulator()->isSimulatorSimulating()))
|
||||||
{
|
{
|
||||||
// Disable pilot login modes
|
// Disable pilot login modes, only observer
|
||||||
ui->rb_LoginNormal->setEnabled(false);
|
ui->rb_LoginNormal->setEnabled(false);
|
||||||
ui->rb_LoginStealth->setEnabled(false);
|
ui->rb_LoginStealth->setEnabled(false);
|
||||||
ui->rb_LoginNormal->setToolTip("No simulator available");
|
ui->rb_LoginNormal->setToolTip("No simulator available");
|
||||||
ui->rb_LoginStealth->setToolTip("No simulator available");
|
ui->rb_LoginStealth->setToolTip("No simulator available");
|
||||||
ui->rb_LoginObserver->setChecked(true);
|
ui->rb_LoginObserver->setChecked(true);
|
||||||
|
ui->lbl_NoSimulator->setVisible(true);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -100,6 +102,7 @@ namespace BlackGui
|
|||||||
ui->rb_LoginNormal->setToolTip({});
|
ui->rb_LoginNormal->setToolTip({});
|
||||||
ui->rb_LoginStealth->setToolTip({});
|
ui->rb_LoginStealth->setToolTip({});
|
||||||
ui->rb_LoginNormal->setChecked(true);
|
ui->rb_LoginNormal->setChecked(true);
|
||||||
|
ui->lbl_NoSimulator->setVisible(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
ui->rb_LoginStealth->setVisible(false); // 2019-01 hide as based on discussion with RR
|
ui->rb_LoginStealth->setVisible(false); // 2019-01 hide as based on discussion with RR
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>324</width>
|
<width>363</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -38,7 +38,7 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QLabel" name="lbl_LognMode">
|
<widget class="QLabel" name="lbl_LognMode">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Login mode</string>
|
<string>Mode</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
@@ -66,6 +66,13 @@
|
|||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item>
|
||||||
|
<widget class="QLabel" name="lbl_NoSimulator">
|
||||||
|
<property name="text">
|
||||||
|
<string>No simulator!</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item>
|
<item>
|
||||||
<spacer name="hs_LoginModeButtons">
|
<spacer name="hs_LoginModeButtons">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
|
|||||||
Reference in New Issue
Block a user