changed settings paths
This commit is contained in:
@@ -44,9 +44,9 @@ void LogInWithCredentials(const std::string &userID, const std::string &username
|
||||
return;
|
||||
}
|
||||
|
||||
QMessageBox messageBox;
|
||||
messageBox.setIcon(QMessageBox::Information);
|
||||
messageBox.setText("Successfully logged in with user <b>" + qS(username) + "</b>!");
|
||||
// QMessageBox messageBox;
|
||||
// messageBox.setIcon(QMessageBox::Information);
|
||||
// messageBox.setText("Successfully logged in with user <b>" + qS(username) + "</b>!");
|
||||
pajlada::Settings::Setting<std::string>::set("/accounts/uid" + userID + "/username", username);
|
||||
pajlada::Settings::Setting<std::string>::set("/accounts/uid" + userID + "/userID", userID);
|
||||
pajlada::Settings::Setting<std::string>::set("/accounts/uid" + userID + "/clientID", clientID);
|
||||
@@ -55,7 +55,7 @@ void LogInWithCredentials(const std::string &userID, const std::string &username
|
||||
|
||||
getApp()->accounts->twitch.reloadUsers();
|
||||
|
||||
messageBox.exec();
|
||||
// messageBox.exec();
|
||||
}
|
||||
|
||||
} // namespace
|
||||
@@ -190,9 +190,10 @@ void AdvancedLoginWidget::refreshButtons()
|
||||
|
||||
LoginWidget::LoginWidget()
|
||||
{
|
||||
#ifdef USEWINSDK
|
||||
::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
|
||||
#endif
|
||||
#ifdef USEWINSDK
|
||||
::SetWindowPos((HWND)this->winId(), HWND_TOPMOST, 0, 0, 0, 0,
|
||||
SWP_NOMOVE | SWP_NOSIZE | SWP_SHOWWINDOW);
|
||||
#endif
|
||||
|
||||
this->setLayout(&this->ui.mainLayout);
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user