Skip to content

Commit

Permalink
ui,popups: improved dialog resizing
Browse files Browse the repository at this point in the history
If the first popup shown misaligned the dialog, the next dialogs were
not resized to the original size.
  • Loading branch information
gustavo-iniguez-goya committed Dec 19, 2024
1 parent 94fba0b commit 6004f36
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/opensnitch/dialogs/prompt.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def __init__(self, parent=None, appicon=None):
self.setWindowIcon(appicon)
self.installEventFilter(self)

self._width = None
self._height = None
self._width = self.width()
self._height = self.height()

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

0 comments on commit 6004f36

Please # to comment.