From 46ec768be5b863a38b947cf06a1c22f25f59d1c7 Mon Sep 17 00:00:00 2001 From: Gatsik <74517072+Gatsik@users.noreply.github.com> Date: Fri, 20 Sep 2024 18:10:09 +0300 Subject: [PATCH] Fix QLineEdit namespace --- src/client/_clientwindow.py | 2 +- src/coop/_coopwidget.py | 2 +- src/games/_gameswidget.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/_clientwindow.py b/src/client/_clientwindow.py index 553440a8d..290336880 100644 --- a/src/client/_clientwindow.py +++ b/src/client/_clientwindow.py @@ -1367,7 +1367,7 @@ def show_autojoin_settings_dialog(self): self, 'Set autojoin channels', text_of_autojoin_settings_dialog, - QtWidgets.QLineEdit.Normal, + QtWidgets.QLineEdit.EchoMode.Normal, ';'.join(autojoin_channels_list), ) if ok: diff --git a/src/coop/_coopwidget.py b/src/coop/_coopwidget.py index 92c1cbf91..6bd32ab2d 100644 --- a/src/coop/_coopwidget.py +++ b/src/coop/_coopwidget.py @@ -228,7 +228,7 @@ def game_double_clicked(self, game: Game) -> None: if game.password_protected: passw, ok = QtWidgets.QInputDialog.getText( self.client, "Passworded game", "Enter password :", - QtWidgets.QLineEdit.Normal, "", + QtWidgets.QLineEdit.EchoMode.Normal, "", ) if ok: self.client.join_game(uid=game.uid, password=passw) diff --git a/src/games/_gameswidget.py b/src/games/_gameswidget.py index f7678a9e7..0dbdd7b13 100644 --- a/src/games/_gameswidget.py +++ b/src/games/_gameswidget.py @@ -248,7 +248,7 @@ def gameDoubleClicked(self, game): self.client, "Passworded game", "Enter password :", - QtWidgets.QLineEdit.Normal, + QtWidgets.QLineEdit.EchoMode.Normal, "", ) if ok: