Skip to content

Commit

Permalink
fix: 如果窗口打开时即为最大化状态,则最大化图标显示错误 (#601)
Browse files Browse the repository at this point in the history
窗口打开时没有windowstatechanged事件,不会去设置窗口状态,在showEvent中处理一下

Log:
Bug: https://pms.uniontech.com/bug-view-262201.html
Influence: mainwindow最大化
  • Loading branch information
Whale107 authored Aug 29, 2024
1 parent 6ab28ed commit 553522e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/widgets/dtitlebar.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ bool DTitlebar::eventFilter(QObject *obj, QEvent *event)
switch (event->type()) {
case QEvent::ShowToParent:
d->handleParentWindowIdChange();
d->updateButtonsState(d->targetWindow()->windowFlags());
d->handleParentWindowStateChange();
break;
case QEvent::Resize:
if (d->autoHideOnFullscreen) {
Expand Down

0 comments on commit 553522e

Please sign in to comment.