mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Hide STEALTH login mode
This commit is contained in:
committed by
Mat Sutcliffe
parent
b706af4767
commit
e8e516cc3d
@@ -7,11 +7,13 @@
|
|||||||
* contained in the LICENSE file.
|
* contained in the LICENSE file.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "ui_loginmodebuttons.h"
|
||||||
|
|
||||||
#include "blackconfig/buildconfig.h"
|
#include "blackconfig/buildconfig.h"
|
||||||
#include "blackgui/loginmodebuttons.h"
|
#include "blackgui/loginmodebuttons.h"
|
||||||
#include "blackgui/guiapplication.h"
|
#include "blackgui/guiapplication.h"
|
||||||
#include "blackcore/context/contextsimulator.h"
|
#include "blackcore/context/contextsimulator.h"
|
||||||
#include "ui_loginmodebuttons.h"
|
#include "blackmisc/verify.h"
|
||||||
|
|
||||||
#include <QRadioButton>
|
#include <QRadioButton>
|
||||||
|
|
||||||
@@ -76,9 +78,9 @@ namespace BlackGui
|
|||||||
if (!sGui || sGui->isShuttingDown()) { return; }
|
if (!sGui || sGui->isShuttingDown()) { return; }
|
||||||
|
|
||||||
// we have no idea how we can get here without the context existing Ref T389
|
// we have no idea how we can get here without the context existing Ref T389
|
||||||
if (CBuildConfig::isLocalDeveloperDebugBuild() && (!sGui->getIContextSimulator()))
|
if (CBuildConfig::isLocalDeveloperDebugBuild() && !sGui->getIContextSimulator())
|
||||||
{
|
{
|
||||||
// how is this possible
|
// how is this possible? In debug builds I do crosscheck
|
||||||
Q_ASSERT_X(false, Q_FUNC_INFO, "No context or sGUI");
|
Q_ASSERT_X(false, Q_FUNC_INFO, "No context or sGUI");
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,5 +101,7 @@ namespace BlackGui
|
|||||||
ui->rb_LoginStealth->setToolTip({});
|
ui->rb_LoginStealth->setToolTip({});
|
||||||
ui->rb_LoginNormal->setChecked(true);
|
ui->rb_LoginNormal->setChecked(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ui->rb_LoginStealth->setVisible(false); // 2019-01 hide as based on discussion with RR
|
||||||
}
|
}
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>285</width>
|
<width>324</width>
|
||||||
<height>22</height>
|
<height>22</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
@@ -62,7 +62,7 @@
|
|||||||
<item alignment="Qt::AlignRight">
|
<item alignment="Qt::AlignRight">
|
||||||
<widget class="QRadioButton" name="rb_LoginObserver">
|
<widget class="QRadioButton" name="rb_LoginObserver">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Observer</string>
|
<string>Observer (co-pilot)</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|||||||
Reference in New Issue
Block a user