mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:57:24 +00:00
UI: Fix main tab icons on startup.
This commit is contained in:
parent
2177fc3b33
commit
82bbe1bdff
@ -6,6 +6,7 @@
|
||||
#include <QQmlApplicationEngine>
|
||||
#include <QQmlContext>
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QTimer>
|
||||
#include <QWindow>
|
||||
|
||||
#include "activityLog/logbuffer.h"
|
||||
@ -96,6 +97,11 @@ void FortManager::setupEngine()
|
||||
m_appWindow = qobject_cast<QWindow *>(
|
||||
m_engine->rootObjects().first());
|
||||
Q_ASSERT(m_appWindow);
|
||||
|
||||
// XXX: Workaround to fix icons' incorrect position on main tab buttons
|
||||
QTimer::singleShot(100, [this]() {
|
||||
m_appWindow->resize(1024, 768);
|
||||
});
|
||||
}
|
||||
|
||||
void FortManager::showTrayIcon()
|
||||
|
@ -7,8 +7,8 @@ import com.fortfirewall 1.0
|
||||
ApplicationWindow {
|
||||
id: appWindow
|
||||
|
||||
width: 800
|
||||
height: 600
|
||||
width: 1025
|
||||
height: 768
|
||||
minimumWidth: 700
|
||||
minimumHeight: 600
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user