mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #513 Make plugin selection persistent
* Saved listeners are started on application startup * CVariant has support for QStringList
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
|
||||
#include "blackmisc/settingscache.h"
|
||||
#include "blackmisc/input/actionhotkeylist.h"
|
||||
#include <QStringList>
|
||||
|
||||
namespace BlackCore
|
||||
{
|
||||
@@ -39,6 +40,27 @@ namespace BlackCore
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
//! Selected simulator plugins
|
||||
struct EnabledSimulators : public BlackMisc::CSettingTrait<QStringList>
|
||||
{
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "application/enabledsimulators"; }
|
||||
|
||||
//! \copydoc BlackCore::CSettingTrait::defaultValue
|
||||
static const QStringList &defaultValue()
|
||||
{
|
||||
// All default simulators
|
||||
static const QStringList enabledSimulators
|
||||
{
|
||||
QStringLiteral("org.swift-project.plugins.simulator.fs9"),
|
||||
QStringLiteral("org.swift-project.plugins.simulator.fsx"),
|
||||
QStringLiteral("org.swift-project.plugins.simulator.xplane")
|
||||
};
|
||||
|
||||
return enabledSimulators;
|
||||
}
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user