summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorTannin <devnull@localhost>2014-04-23 23:59:30 +0200
committerTannin <devnull@localhost>2014-04-23 23:59:30 +0200
commit2db33523a1c8497657963a88f70fe1726cbf8fc9 (patch)
tree016b015087a64900db9787a2a3f3551128c43df3 /src/settings.cpp
parent540747177ae02c9431d33a2c3adc1f747b74b868 (diff)
- added an option to show meta info on downloads instead of filenames
- MO will now cancel if user tries to run MO vfs-injected - when saving the MO ini file it is now written to a tmp file first and then overwritten - updated to link against boost python 1.55
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index d9a7e799..d63aabe4 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -242,6 +242,16 @@ bool Settings::getNexusLogin(QString &username, QString &password) const
}
}
+bool Settings::compactDownloads() const
+{
+ return m_Settings.value("Settings/compact_downloads", false).toBool();
+}
+
+bool Settings::metaDownloads() const
+{
+ return m_Settings.value("Settings/meta_downloads", false).toBool();
+}
+
bool Settings::offlineMode() const
{
return m_Settings.value("Settings/offline_mode", false).toBool();
@@ -508,7 +518,8 @@ void Settings::query(QWidget *parent)
QComboBox *languageBox = dialog.findChild<QComboBox*>("languageBox");
QComboBox *styleBox = dialog.findChild<QComboBox*>("styleBox");
QComboBox *logLevelBox = dialog.findChild<QComboBox*>("logLevelBox");
-// QCheckBox *handleNXMBox = dialog.findChild<QCheckBox*>("handleNXMBox");
+ QCheckBox *compactBox = dialog.findChild<QCheckBox*>("compactBox");
+ QCheckBox *showMetaBox = dialog.findChild<QCheckBox*>("showMetaBox");
QLineEdit *downloadDirEdit = dialog.findChild<QLineEdit*>("downloadDirEdit");
QLineEdit *modDirEdit = dialog.findChild<QLineEdit*>("modDirEdit");
@@ -587,6 +598,9 @@ void Settings::query(QWidget *parent)
}
}
+ compactBox->setChecked(compactDownloads());
+ showMetaBox->setChecked(metaDownloads());
+
hideUncheckedBox->setChecked(hideUncheckedPlugins());
forceEnableBox->setChecked(forceEnableCoreFiles());
@@ -651,6 +665,8 @@ void Settings::query(QWidget *parent)
m_Settings.setValue("Settings/hide_unchecked_plugins", hideUncheckedBox->checkState() ? true : false);
m_Settings.setValue("Settings/force_enable_core_files", forceEnableBox->checkState() ? true : false);
+ m_Settings.setValue("Settings/compact_downloads", compactBox->isChecked());
+ m_Settings.setValue("Settings/meta_downloads", showMetaBox->isChecked());
m_Settings.setValue("Settings/load_mechanism", mechanismBox->itemData(mechanismBox->currentIndex()).toInt());
if (QDir(downloadDirEdit->text()).exists()) {
m_Settings.setValue("Settings/download_directory", QDir::toNativeSeparators(downloadDirEdit->text()));