Skip to content

Commit

Permalink
fix: window is closed after switching mode
Browse files Browse the repository at this point in the history
仅当 visible 为 true 时调用 requestActivate,
调用时机不对导致 active 状态异常

Issues: linuxdeepin/developer-center#9567
  • Loading branch information
zsien committed Jul 5, 2024
1 parent 8026a3f commit 51bc44b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qml/Main.qml
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,9 @@ QtObject {
DWindow.borderColor: DTK.themeType === ApplicationHelper.DarkType ? Qt.rgba(0, 0, 0, windowedFrameWindow.blendColorAlpha(0.6) + 10 / 255) : Qt.rgba(0, 0, 0, 0.15)

onVisibleChanged: {
updateWindowVisibilityAndPosition()
if (visible) {
updateWindowVisibilityAndPosition()
}
}

onActiveChanged: {
Expand Down

0 comments on commit 51bc44b

Please sign in to comment.