Skip to content

Commit 6004f36

Browse files
ui,popups: improved dialog resizing
If the first popup shown misaligned the dialog, the next dialogs were not resized to the original size.
1 parent 94fba0b commit 6004f36

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/opensnitch/dialogs/prompt.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ def __init__(self, parent=None, appicon=None):
6767
self.setWindowIcon(appicon)
6868
self.installEventFilter(self)
6969

70-
self._width = None
71-
self._height = None
70+
self._width = self.width()
71+
self._height = self.height()
7272

7373
dialog_geometry = self._cfg.getSettings("promptDialog/geometry")
7474
if dialog_geometry == QtCore.QByteArray:

0 commit comments

Comments
 (0)