summaryrefslogtreecommitdiff
path: root/src/settingsdialog.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2019-08-16 08:02:14 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2019-08-16 08:02:14 -0400
commita5cb39aaf44b1f84003fb2ec2d36f07bf28916e4 (patch)
tree083e7ca94003ac269b323f135b9eafe560e5aedc /src/settingsdialog.cpp
parent3f487a5a6c9c23824298fdde3d76dc82edf3ca46 (diff)
moved all geometry save, restore and reset to GeometrySettings
changed reset button in settings to restart immediately
Diffstat (limited to 'src/settingsdialog.cpp')
-rw-r--r--src/settingsdialog.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/settingsdialog.cpp b/src/settingsdialog.cpp
index fbd9ecd1..d74507c9 100644
--- a/src/settingsdialog.cpp
+++ b/src/settingsdialog.cpp
@@ -34,7 +34,6 @@ SettingsDialog::SettingsDialog(PluginContainer *pluginContainer, Settings* setti
, ui(new Ui::SettingsDialog)
, m_settings(settings)
, m_PluginContainer(pluginContainer)
- , m_GeometriesReset(false)
, m_keyChanged(false)
{
ui->setupUi(this);
@@ -101,10 +100,7 @@ int SettingsDialog::exec()
if (getApiKeyChanged()) {
restartNeeded = true;
}
- if (getResetGeometries()) {
- restartNeeded = true;
- qsettings.setValue("reset_geometry", true);
- }
+
if (restartNeeded) {
if (QMessageBox::question(nullptr,
tr("Restart Mod Organizer?"),
@@ -156,11 +152,6 @@ void SettingsDialog::accept()
TutorableDialog::accept();
}
-bool SettingsDialog::getResetGeometries()
-{
- return ui->resetGeometryBtn->isChecked();
-}
-
bool SettingsDialog::getApiKeyChanged()
{
return m_keyChanged;