From 346bc630f8986e52101d51ac93e70154915c450a Mon Sep 17 00:00:00 2001 From: Al12rs Date: Wed, 12 Dec 2018 10:37:10 +0100 Subject: Create new Separators in last used color. --- src/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/mainwindow.cpp') 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(); + if (previousColor.isValid()) { + ModInfo::getByIndex(ModInfo::getIndex(name))->setColor(previousColor); + } + } void MainWindow::setColor_clicked() -- cgit v1.3.1