mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-13 13:55:51 +00:00
edit ui
* remove margins * create more pretty toolbars * edit toolbar update action (s/setVisible/setEnabled/g)
This commit is contained in:
@ -70,7 +70,7 @@ public slots:
|
||||
// wpaCommand
|
||||
QString CurrentWiFi();
|
||||
QStringList VerboseWiFi();
|
||||
QStringList WiFi();
|
||||
Q_DECL_DEPRECATED QStringList WiFi();
|
||||
|
||||
private:
|
||||
bool debug;
|
||||
|
@ -21,6 +21,7 @@
|
||||
#include <QDBusMessage>
|
||||
#include <QDir>
|
||||
#include <QLibraryInfo>
|
||||
#include <QProcessEnvironment>
|
||||
#include <QTranslator>
|
||||
#include <iostream>
|
||||
#include <unistd.h>
|
||||
@ -87,6 +88,9 @@ int main(int argc, char *argv[])
|
||||
args[QString("error")] = true;
|
||||
}
|
||||
}
|
||||
QProcessEnvironment environment = QProcessEnvironment::systemEnvironment();
|
||||
QString debugEnv = environment.value(QString("DEBUG"), QString("no"));
|
||||
if (!args[QString("debug")].toBool()) args[QString("debug")] = (debugEnv == QString("yes"));
|
||||
if ((args[QString("debug")].toBool()) ||
|
||||
(args[QString("help")].toBool()) ||
|
||||
(args[QString("info")].toBool()) ||
|
||||
@ -102,6 +106,13 @@ int main(int argc, char *argv[])
|
||||
args[QString("session")] = true;
|
||||
}
|
||||
|
||||
// check
|
||||
QString robotEnv = environment.value(QString("SKYNET"), QString(""));
|
||||
if (!robotEnv.isEmpty()) {
|
||||
cout << "Sorry, this software is only for humans" << endl;
|
||||
return 2;
|
||||
}
|
||||
|
||||
#if QT_VERSION >= 0x050000
|
||||
QCoreApplication::setSetuidAllowed(true);
|
||||
#endif
|
||||
|
@ -49,7 +49,7 @@ public slots:
|
||||
QString netctlActiveProfile();
|
||||
QStringList netctlProfileList();
|
||||
QStringList netctlVerboseProfileList();
|
||||
QStringList ProfileList();
|
||||
Q_DECL_DEPRECATED QStringList ProfileList();
|
||||
QStringList VerboseProfileList();
|
||||
// netctlProfile
|
||||
QStringList Profile(const QString profile);
|
||||
|
Reference in New Issue
Block a user