Add setting to keep track whether it is the Plasmoid

This commit is contained in:
Martchus 2022-10-08 22:20:06 +02:00
parent d4720f464f
commit a0297f67ba
2 changed files with 2 additions and 0 deletions

View File

@ -138,6 +138,7 @@ void SyncthingApplet::init()
// restore settings
auto &settings = Settings::values();
settings.isPlasmoid = true;
Settings::restore();
// initialize systemd service support

View File

@ -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