mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 01:45:38 +08:00
Ref T709, changed to settings provider
* CPlugin is the provider * it is "kept" in DBus object for traffic, service, weather
This commit is contained in:
committed by
Mat Sutcliffe
parent
97926eee26
commit
f9c87326fb
@@ -26,8 +26,6 @@ namespace
|
||||
|
||||
namespace XSwiftBus
|
||||
{
|
||||
CSettings CPlugin::s_pluginSettings = CSettings();
|
||||
|
||||
CPlugin::CPlugin()
|
||||
: m_dbusConnection(std::make_shared<CDBusConnection>()), m_menu(CMenu::mainMenu().subMenu("XSwiftBus"))
|
||||
{
|
||||
@@ -99,9 +97,9 @@ namespace XSwiftBus
|
||||
|
||||
readConfig();
|
||||
|
||||
m_service = std::make_unique<CService>(&CPlugin::s_pluginSettings);
|
||||
m_traffic = std::make_unique<CTraffic>(&CPlugin::s_pluginSettings);
|
||||
m_weather = std::make_unique<CWeather>(&CPlugin::s_pluginSettings);
|
||||
m_service = std::make_unique<CService>(this);
|
||||
m_traffic = std::make_unique<CTraffic>(this);
|
||||
m_weather = std::make_unique<CWeather>(this);
|
||||
|
||||
m_traffic->setPlaneViewMenu(m_planeViewSubMenu);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user