Add setting to keep track whether it is the Plasmoid
This commit is contained in:
parent
d4720f464f
commit
a0297f67ba
|
@ -138,6 +138,7 @@ void SyncthingApplet::init()
|
|||
|
||||
// restore settings
|
||||
auto &settings = Settings::values();
|
||||
settings.isPlasmoid = true;
|
||||
Settings::restore();
|
||||
|
||||
// initialize systemd service support
|
||||
|
|
|
@ -157,6 +157,7 @@ struct SYNCTHINGWIDGETS_EXPORT Settings {
|
|||
bool firstLaunch = false;
|
||||
bool fakeFirstLaunch = false; // not persistent, for testing purposes only
|
||||
bool enableWipFeatures = false; // not persistent, for testing purposes only
|
||||
bool isPlasmoid = false; // not persistent, set by the Plasmoid
|
||||
Connection connection;
|
||||
NotifyOn notifyOn;
|
||||
#ifdef QT_UTILITIES_SUPPORT_DBUS_NOTIFICATIONS
|
||||
|
|
Loading…
Reference in New Issue