changed settings paths

This commit is contained in:
fourtf
2018-06-21 13:02:34 +02:00
parent e0ecd97184
commit 2f91e3097a
17 changed files with 158 additions and 94 deletions
@@ -36,6 +36,10 @@ CommandPage::CommandPage()
util::LayoutCreator<CommandPage> layoutCreator(this);
auto layout = layoutCreator.emplace<QVBoxLayout>().withoutMargin();
auto warning = layout.emplace<QLabel>("The command system will be reworked in the "
"future!\nYour saved commands will get discarded then.");
warning.getElement()->setStyleSheet("color: #f00");
helper::EditableModelView *view =
*layout.emplace<helper::EditableModelView>(app->commands->createModel(nullptr));
@@ -10,6 +10,7 @@
#include "widgets/helper/editablemodelview.hpp"
#include <QFileDialog>
#include <QHeaderView>
#include <QListWidget>
#include <QPushButton>
#include <QStandardItemModel>
+1 -1
View File
@@ -50,7 +50,7 @@ ModerationPage::ModerationPage()
app->settings->logPath.connect([app, created](const QString &logPath, auto) mutable {
if (logPath == "") {
created->setText("Logs are saved to " +
CreateLink(app->paths->logsFolderPath, true));
CreateLink(app->paths->messageLogDirectory, true));
} else {
created->setText("Logs are saved to " + CreateLink(logPath, true));
}