Use separate window for viewing logs

Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
Yihe Li 2025-06-05 07:18:07 +08:00
parent 1aa8d7bc13
commit e4a801fdf7
No known key found for this signature in database
8 changed files with 94 additions and 16 deletions

View file

@ -231,7 +231,8 @@ void OtherLogsPage::on_btnReload_clicked()
if (!m_model)
return;
m_model->clear();
m_container->refreshContainer();
if (m_container)
m_container->refreshContainer();
} else {
reload();
}
@ -358,7 +359,8 @@ void OtherLogsPage::reload()
void OtherLogsPage::on_btnPaste_clicked()
{
GuiUtil::uploadPaste(m_currentFile, ui->text->toPlainText(), this);
QString name = m_currentFile.isEmpty() ? displayName() : m_currentFile;
GuiUtil::uploadPaste(name, ui->text->toPlainText(), this);
}
void OtherLogsPage::on_btnCopy_clicked()