fix: Correct window flag type for close button hint in update dialogs

This commit is contained in:
claudi 2026-01-29 08:48:29 +01:00
parent 41549848ed
commit 50311139bf
2 changed files with 5 additions and 4 deletions

View file

@ -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: