Hide STEALTH login mode

This commit is contained in:
Klaus Basan
2019-01-14 12:35:59 +01:00
committed by Mat Sutcliffe
parent b706af4767
commit e8e516cc3d
2 changed files with 9 additions and 5 deletions

View File

@@ -7,11 +7,13 @@
* contained in the LICENSE file.
*/
#include "ui_loginmodebuttons.h"
#include "blackconfig/buildconfig.h"
#include "blackgui/loginmodebuttons.h"
#include "blackgui/guiapplication.h"
#include "blackcore/context/contextsimulator.h"
#include "ui_loginmodebuttons.h"
#include "blackmisc/verify.h"
#include <QRadioButton>
@@ -76,9 +78,9 @@ namespace BlackGui
if (!sGui || sGui->isShuttingDown()) { return; }
// 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");
}
@@ -99,5 +101,7 @@ namespace BlackGui
ui->rb_LoginStealth->setToolTip({});
ui->rb_LoginNormal->setChecked(true);
}
ui->rb_LoginStealth->setVisible(false); // 2019-01 hide as based on discussion with RR
}
} // ns

View File

@@ -6,7 +6,7 @@
<rect>
<x>0</x>
<y>0</y>
<width>285</width>
<width>324</width>
<height>22</height>
</rect>
</property>
@@ -62,7 +62,7 @@
<item alignment="Qt::AlignRight">
<widget class="QRadioButton" name="rb_LoginObserver">
<property name="text">
<string>Observer</string>
<string>Observer (co-pilot)</string>
</property>
</widget>
</item>