linuxdeepin / dtkwidget

Deepin Toolkit, widget module for DDE look and feel
Other
206 stars 144 forks source link

fix: titlebar buttons don't recover #460

Closed asterwyx closed 1 year ago

asterwyx commented 1 year ago

Titlebar has a targetWindow and it will sync disableFlags with window's motif functions. Do not set disableFlags according to the current state of buttons. Because when targetWindow(That is also top level window of titlebar) is disabled, all its children will always return false when invoking isEnabled. Also, never explicitly disable any button unless you know when to enable it again. Let top level window manages it. DisableFlags only apply to configuration, will not reveal buttons' state.

Log: fix titlebar buttons don't recover

deepin-bot[bot] commented 1 year ago

Doc Check bot :green_circle: Document Coverage Check Passed!

asterwyx commented 1 year ago

/integrate

github-actions[bot] commented 1 year ago

AutoIntegrationPr Bot auto integrate with pr url: https://github.com/deepin-community/Repository-Integration/pull/196 PrNumber: 196 PrBranch: auto-integration-5320721863

asterwyx commented 1 year ago

/retest

asterwyx commented 1 year ago

Related issue: https://github.com/linuxdeepin/developer-center/issues/4194