mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-26 15:58:51 -04:00
UI: Add maximize and minimize support to Log Viewer
This commit is contained in:
1 parent
fca5e45f22
commit
a4e1049e67
2 files changed
+5
-1
No files matched your search
+2
-1
@@ -14,7 +14,8 @@
|
||||
|
||||
OBSLogViewer::OBSLogViewer(QWidget *parent) : QDialog(parent)
|
||||
{
|
||||
setWindowFlags(windowFlags() & ~Qt::WindowContextHelpButtonHint);
|
||||
setWindowFlags(windowFlags() & Qt::WindowMaximizeButtonHint &
|
||||
~Qt::WindowContextHelpButtonHint);
|
||||
|
||||
QVBoxLayout *layout = new QVBoxLayout();
|
||||
layout->setContentsMargins(0, 0, 0, 0);
|
||||
|
||||
@@ -5302,6 +5302,9 @@ void OBSBasic::on_actionViewCurrentLog_triggered()
|
||||
if (!logView->isVisible()) {
|
||||
logView->setVisible(true);
|
||||
} else {
|
||||
logView->setWindowState(logView->windowState() &
|
||||
~Qt::WindowMinimized |
|
||||
Qt::WindowActive);
|
||||
logView->activateWindow();
|
||||
logView->raise();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user