You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
加载上次关闭窗口位置的功能,位于 mainwindow.cpp 的 loadStateAndGeometry 函数,该函数被kickOffOnStart 函数调用,再上一层是 main 函数。
main.cpp 内 main 函数的局部代码:
...
MainWindow window;
window.show();
QObject::connect(...);
...
// Let MainWindow show first to decide the screen on which app is running.
...
window.kickOffOnStart(cmdOptions.m_pathsToOpen);
...
Describe the bug
当关闭了
设置
-通用
-最小化到系统托盘
功能时,关闭VNote软件并再次打开,窗口会发生闪烁:To Reproduce
见上。
Expected behavior
窗口布局没有闪烁,直接显示成最终状态。
Screenshots
录屏视频:
vnote-bug.mp4
Desktop (please complete the following information):
Additional context
这个问题虽然可以通过启用开关来减小影响(但是首次启动时还是会闪烁),但是这也许本身是个小问题,是否考虑一下能否解决?
我查看了源代码,也许产生问题是这样的原因:
加载上次关闭窗口位置的功能,位于
mainwindow.cpp
的loadStateAndGeometry
函数,该函数被kickOffOnStart
函数调用,再上一层是main
函数。main.cpp
内main
函数的局部代码:如果将
window.show()
的代码移动到window.kickOffOnStart
函数调用后面,是否能够解决问题:... MainWindow window; ... window.kickOffOnStart(cmdOptions.m_pathsToOpen); window.show(); // 移动到这里 ...
The text was updated successfully, but these errors were encountered: