mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
disabled the custom log path as it doesn't save in the proper
directories
This commit is contained in:
parent
334f778f42
commit
714d3178d6
2 changed files with 36 additions and 34 deletions
|
@ -39,7 +39,8 @@ void LoggingManager::addMessage(const QString &channelName, messages::MessagePtr
|
||||||
|
|
||||||
QString LoggingManager::getDirectoryForChannel(const QString &channelName)
|
QString LoggingManager::getDirectoryForChannel(const QString &channelName)
|
||||||
{
|
{
|
||||||
auto customPath = getApp()->settings->logPath;
|
// auto customPath = getApp()->settings->logPath;
|
||||||
|
auto customPath = QString("");
|
||||||
|
|
||||||
if (channelName.startsWith("/whispers")) {
|
if (channelName.startsWith("/whispers")) {
|
||||||
if (customPath != "")
|
if (customPath != "")
|
||||||
|
|
|
@ -60,11 +60,11 @@ ModerationPage::ModerationPage()
|
||||||
logs.append(this->createCheckBox("Enable logging", app->settings->enableLogging));
|
logs.append(this->createCheckBox("Enable logging", app->settings->enableLogging));
|
||||||
|
|
||||||
logs->addStretch(1);
|
logs->addStretch(1);
|
||||||
|
/*
|
||||||
|
auto selectDir = logs.emplace<QPushButton>("Set custom logpath");
|
||||||
|
|
||||||
auto selectDir = logs.emplace<QPushButton>("Set custom logpath");
|
// Setting custom logpath
|
||||||
|
QObject::connect(
|
||||||
// Setting custom logpath
|
|
||||||
QObject::connect(
|
|
||||||
selectDir.getElement(), &QPushButton::clicked, this,
|
selectDir.getElement(), &QPushButton::clicked, this,
|
||||||
[this, created, app, dirMemory = QString{app->settings->logPath}]() mutable {
|
[this, created, app, dirMemory = QString{app->settings->logPath}]() mutable {
|
||||||
auto dirName = QFileDialog::getExistingDirectory(this);
|
auto dirName = QFileDialog::getExistingDirectory(this);
|
||||||
|
@ -84,9 +84,9 @@ ModerationPage::ModerationPage()
|
||||||
dirMemory = dirName;
|
dirMemory = dirName;
|
||||||
app->logging->refreshLoggingPath();
|
app->logging->refreshLoggingPath();
|
||||||
});
|
});
|
||||||
// Reset custom logpath
|
// Reset custom logpath
|
||||||
auto resetDir = logs.emplace<QPushButton>("Reset logpath");
|
auto resetDir = logs.emplace<QPushButton>("Reset logpath");
|
||||||
QObject::connect(
|
QObject::connect(
|
||||||
resetDir.getElement(), &QPushButton::clicked, this, [this, created, app]() mutable {
|
resetDir.getElement(), &QPushButton::clicked, this, [this, created, app]() mutable {
|
||||||
app->settings->logPath = "";
|
app->settings->logPath = "";
|
||||||
created->setText(
|
created->setText(
|
||||||
|
@ -96,7 +96,8 @@ ModerationPage::ModerationPage()
|
||||||
app->logging->refreshLoggingPath();
|
app->logging->refreshLoggingPath();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Logs end
|
// Logs end
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
auto modMode = tabs.appendTab(new QVBoxLayout, "Moderation mode");
|
auto modMode = tabs.appendTab(new QVBoxLayout, "Moderation mode");
|
||||||
|
|
Loading…
Reference in a new issue