fix(src/windows): 修改初始状态未监听屏幕变化的bug
This commit is contained in:
parent
7edccdf553
commit
18f59fb5a4
|
@ -232,6 +232,7 @@ void MenuWindow::init()
|
|||
}
|
||||
});
|
||||
setScreen(QGuiApplication::primaryScreen());
|
||||
connect(screen(), &QScreen::geometryChanged, this, &MenuWindow::updateGeometry);
|
||||
|
||||
setTitle(QCoreApplication::applicationName());
|
||||
setResizeMode(SizeRootObjectToView);
|
||||
|
|
Loading…
Reference in New Issue