mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Rename CApplication member function to be better readable
The combination of the method's name 'signalStartupAutomatically' and the default argument, I completely misunderstood the purpose of the method in case the argument was skipped. 'a.signalStartupAutomatically()' actually disabled automatic signaling.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
fcac3b8137
commit
3603bbabe2
@@ -342,9 +342,9 @@ namespace BlackCore
|
||||
return false;
|
||||
}
|
||||
|
||||
void CApplication::signalStartupAutomatically(bool signal)
|
||||
void CApplication::setSignalStartupAutomatically(bool enabled)
|
||||
{
|
||||
this->m_signalStartup = signal;
|
||||
this->m_signalStartup = enabled;
|
||||
}
|
||||
|
||||
QString CApplication::getEnvironmentInfoString(const QString &separator) const
|
||||
|
||||
@@ -168,7 +168,7 @@ namespace BlackCore
|
||||
bool isRunningInDeveloperEnvironment() const { return this->m_devEnv; }
|
||||
|
||||
//! Signal startup automatically or individually
|
||||
void signalStartupAutomatically(bool signal = false);
|
||||
void setSignalStartupAutomatically(bool enabled);
|
||||
|
||||
//! Info string
|
||||
QString getEnvironmentInfoString(const QString &separator) const;
|
||||
|
||||
@@ -25,7 +25,7 @@ int main(int argc, char *argv[])
|
||||
CGuiApplication::highDpiScreenSupport();
|
||||
QApplication qa(argc, argv);
|
||||
CSwiftGuiStdApplication a;
|
||||
a.signalStartupAutomatically(); // application will signal startup on its own
|
||||
a.setSignalStartupAutomatically(false); // application will signal startup on its own
|
||||
a.splashScreen(":/own/icons/own/swift/swiftCirclePilotClient1024.png");
|
||||
if (!a.start())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user