connect(_ui->ignoredFilesButton, SIGNAL(clicked()), SLOT(slotIgnoreFilesEditor()));
connect(_ui->addAccountButton, SIGNAL(clicked()), SLOT(slotOpenAccountWizard()));
+
+ if (Theme::instance()->singleAccount()) {
+ _ui->addAccountButton->setVisible(false);
+ }
}
GeneralSettings::~GeneralSettings()
return false;
}
+bool Theme::singleAccount() const
+{
+ return false;
+}
+
QString Theme::defaultServerFolder() const
{
return QLatin1String("/");
* Characteristics: bool if more than one sync folder is allowed
*/
virtual bool singleSyncFolder() const;
+ /**
+ * When true, there can only be one account.
+ */
+ virtual bool singleAccount() const;
/**
* URL to help file