mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Remove monoIcons related things from configfile
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
This commit is contained in:
parent
0aee2bc2eb
commit
8f2dcf4ca3
2 changed files with 0 additions and 21 deletions
|
@ -56,7 +56,6 @@ static constexpr char remotePollIntervalC[] = "remotePollInterval";
|
||||||
static constexpr char forceSyncIntervalC[] = "forceSyncInterval";
|
static constexpr char forceSyncIntervalC[] = "forceSyncInterval";
|
||||||
static constexpr char fullLocalDiscoveryIntervalC[] = "fullLocalDiscoveryInterval";
|
static constexpr char fullLocalDiscoveryIntervalC[] = "fullLocalDiscoveryInterval";
|
||||||
static constexpr char notificationRefreshIntervalC[] = "notificationRefreshInterval";
|
static constexpr char notificationRefreshIntervalC[] = "notificationRefreshInterval";
|
||||||
static constexpr char monoIconsC[] = "monoIcons";
|
|
||||||
static constexpr char promptDeleteC[] = "promptDeleteAllFiles";
|
static constexpr char promptDeleteC[] = "promptDeleteAllFiles";
|
||||||
static constexpr char crashReporterC[] = "crashReporter";
|
static constexpr char crashReporterC[] = "crashReporter";
|
||||||
static constexpr char optionalServerNotificationsC[] = "optionalServerNotifications";
|
static constexpr char optionalServerNotificationsC[] = "optionalServerNotifications";
|
||||||
|
@ -947,23 +946,6 @@ void ConfigFile::setPromptDeleteFiles(bool promptDeleteFiles)
|
||||||
settings.setValue(QLatin1String(promptDeleteC), promptDeleteFiles);
|
settings.setValue(QLatin1String(promptDeleteC), promptDeleteFiles);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ConfigFile::monoIcons() const
|
|
||||||
{
|
|
||||||
QSettings settings(configFile(), QSettings::IniFormat);
|
|
||||||
bool monoDefault = false; // On Mac we want bw by default
|
|
||||||
#ifdef Q_OS_MAC
|
|
||||||
// OEM themes are not obliged to ship mono icons
|
|
||||||
monoDefault = QByteArrayLiteral("Nextcloud") == QByteArrayLiteral(APPLICATION_NAME);
|
|
||||||
#endif
|
|
||||||
return settings.value(QLatin1String(monoIconsC), monoDefault).toBool();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ConfigFile::setMonoIcons(bool useMonoIcons)
|
|
||||||
{
|
|
||||||
QSettings settings(configFile(), QSettings::IniFormat);
|
|
||||||
settings.setValue(QLatin1String(monoIconsC), useMonoIcons);
|
|
||||||
}
|
|
||||||
|
|
||||||
bool ConfigFile::crashReporter() const
|
bool ConfigFile::crashReporter() const
|
||||||
{
|
{
|
||||||
QSettings settings(configFile(), QSettings::IniFormat);
|
QSettings settings(configFile(), QSettings::IniFormat);
|
||||||
|
|
|
@ -83,9 +83,6 @@ public:
|
||||||
*/
|
*/
|
||||||
[[nodiscard]] std::chrono::milliseconds fullLocalDiscoveryInterval() const;
|
[[nodiscard]] std::chrono::milliseconds fullLocalDiscoveryInterval() const;
|
||||||
|
|
||||||
[[nodiscard]] bool monoIcons() const;
|
|
||||||
void setMonoIcons(bool);
|
|
||||||
|
|
||||||
[[nodiscard]] bool promptDeleteFiles() const;
|
[[nodiscard]] bool promptDeleteFiles() const;
|
||||||
void setPromptDeleteFiles(bool promptDeleteFiles);
|
void setPromptDeleteFiles(bool promptDeleteFiles);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue