fix: Correct window flag type for close button hint in update dialogs
This commit is contained in:
parent
41549848ed
commit
50311139bf
2 changed files with 5 additions and 4 deletions
|
|
@ -44,7 +44,7 @@ class TestCheckingDialog:
|
|||
"""Test dialog has no close button."""
|
||||
dialog = CheckingDialog()
|
||||
# WindowCloseButtonHint should be removed
|
||||
assert not (dialog.windowFlags() & Qt.WindowCloseButtonHint)
|
||||
assert not (dialog.windowFlags() & Qt.WindowType.WindowCloseButtonHint)
|
||||
|
||||
|
||||
class TestUpdateAvailableDialog:
|
||||
|
|
@ -141,7 +141,7 @@ class TestDownloadingDialog:
|
|||
def test_no_close_button(self, qapp):
|
||||
"""Test dialog has no close button."""
|
||||
dialog = DownloadingDialog()
|
||||
assert not (dialog.windowFlags() & Qt.WindowCloseButtonHint)
|
||||
assert not (dialog.windowFlags() & Qt.WindowType.WindowCloseButtonHint)
|
||||
|
||||
|
||||
class TestInstallDialog:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue