mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +08:00
Moved log subscription to front
(see https://dev.vatsim-germany.org/boards/22/topics/2871?r=2875#message-2875)
This commit is contained in:
@@ -301,10 +301,6 @@ void SwiftGuiStd::setContextAvailability()
|
||||
sGui->getIContextApplication()->synchronizeLogSubscriptions();
|
||||
sGui->getIContextApplication()->synchronizeLocalSettings();
|
||||
}
|
||||
else
|
||||
{
|
||||
// core has just become unavailable...
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -64,6 +64,11 @@ void SwiftGuiStd::init()
|
||||
this->m_mwaLogComponent = this->ui->comp_MainInfoArea->getLogComponent();
|
||||
|
||||
sGui->initMainApplicationWindow(this);
|
||||
|
||||
// log messages
|
||||
m_logSubscriber.changeSubscription(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));
|
||||
|
||||
// style
|
||||
this->initStyleSheet();
|
||||
|
||||
// with frameless window, we shift menu and statusbar into central widget
|
||||
@@ -116,9 +121,6 @@ void SwiftGuiStd::init()
|
||||
connect(sGui->getIContextNetwork(), &IContextNetwork::textMessageSent, this->ui->comp_MainInfoArea->getTextMessageComponent(), &CTextMessageComponent::onTextMessageSent);
|
||||
connect(this->m_timerContextWatchdog, &QTimer::timeout, this, &SwiftGuiStd::ps_handleTimerBasedUpdates);
|
||||
|
||||
// log messages
|
||||
m_logSubscriber.changeSubscription(CLogPattern().withSeverityAtOrAbove(CStatusMessage::SeverityInfo));
|
||||
|
||||
// start timers, update timers will be started when network is connected
|
||||
this->m_timerContextWatchdog->start(2500);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user