diff options
| author | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-12 10:37:10 +0100 |
|---|---|---|
| committer | Al12rs <gabriel.cortesi@outlook.com> | 2018-12-12 10:37:10 +0100 |
| commit | 346bc630f8986e52101d51ac93e70154915c450a (patch) | |
| tree | 3cfbe49dc85ad0613b44e9120ca63d4c2f738b9e /src/mainwindow.cpp | |
| parent | 013890f644c264d7da0d7da1adcd3f289ebee377 (diff) | |
Create new Separators in last used color.
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 18ac60bf..795f82cf 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -3045,6 +3045,12 @@ void MainWindow::createSeparator_clicked() {
m_OrganizerCore.modList()->changeModPriority(ModInfo::getIndex(name), newPriority);
}
+ QSettings &settings = m_OrganizerCore.settings().directInterface();
+ QColor previousColor = settings.value("previousSeparatorColor", QColor()).value<QColor>();
+ if (previousColor.isValid()) {
+ ModInfo::getByIndex(ModInfo::getIndex(name))->setColor(previousColor);
+ }
+
}
void MainWindow::setColor_clicked()
|
