diff options
author | Petr Mrázek <peterix@gmail.com> | 2021-10-18 00:47:02 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2021-10-21 00:47:53 +0200 |
commit | 5b3dffce62f7e4c00436adeca33c5f2fc4a21db4 (patch) | |
tree | 01a0eb2d994a9b0622697a6dbb124966692e692a /launcher/pages/instance/LogPage.cpp | |
parent | 297d4b4196c9bd1d9c4dd422dd88aaec620038d6 (diff) | |
download | PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.tar.gz PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.tar.bz2 PrismLauncher-5b3dffce62f7e4c00436adeca33c5f2fc4a21db4.zip |
NOISSUE continue debranding...
Diffstat (limited to 'launcher/pages/instance/LogPage.cpp')
-rw-r--r-- | launcher/pages/instance/LogPage.cpp | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/launcher/pages/instance/LogPage.cpp b/launcher/pages/instance/LogPage.cpp index 2399b55d..2846dc51 100644 --- a/launcher/pages/instance/LogPage.cpp +++ b/launcher/pages/instance/LogPage.cpp @@ -11,6 +11,7 @@ #include <settings/Setting.h> #include "GuiUtil.h" #include <ColorCache.h> +#include <BuildConfig.h> class LogFormatProxyModel : public QIdentityProxyModel { @@ -236,15 +237,30 @@ void LogPage::on_btnPaste_clicked() return; //FIXME: turn this into a proper task and move the upload logic out of GuiUtil! - m_model->append(MessageLevel::MultiMC, QString("MultiMC: Log upload triggered at: %1").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date))); + m_model->append( + MessageLevel::Launcher, + QString("%2: Log upload triggered at: %1").arg( + QDateTime::currentDateTime().toString(Qt::RFC2822Date), + BuildConfig.LAUNCHER_NAME + ) + ); auto url = GuiUtil::uploadPaste(m_model->toPlainText(), this); if(!url.isEmpty()) { - m_model->append(MessageLevel::MultiMC, QString("MultiMC: Log uploaded to: %1").arg(url)); + m_model->append( + MessageLevel::Launcher, + QString("%2: Log uploaded to: %1").arg( + url, + BuildConfig.LAUNCHER_NAME + ) + ); } else { - m_model->append(MessageLevel::Error, "MultiMC: Log upload failed!"); + m_model->append( + MessageLevel::Error, + QString("%1: Log upload failed!").arg(BuildConfig.LAUNCHER_NAME) + ); } } @@ -252,7 +268,7 @@ void LogPage::on_btnCopy_clicked() { if(!m_model) return; - m_model->append(MessageLevel::MultiMC, QString("Clipboard copy at: %1").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date))); + m_model->append(MessageLevel::Launcher, QString("Clipboard copy at: %1").arg(QDateTime::currentDateTime().toString(Qt::RFC2822Date))); GuiUtil::setClipboardText(m_model->toPlainText()); } |