mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-05 00:51:05 +01:00
UI: force to bring the allow/deny pop-up to the front
This solves an issue where the pop-up was only displayed on the same screen/desktop/workspace where the main window was.
This commit is contained in:
parent
de00e89302
commit
0d80af45c2
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,7 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
|
||||
def __init__(self, parent=None):
|
||||
QtWidgets.QDialog.__init__(self, parent, QtCore.Qt.WindowStaysOnTopHint)
|
||||
|
||||
# Other interesting flags: QtCore.Qt.Tool | QtCore.Qt.BypassWindowManagerHint
|
||||
self._cfg = Config.get()
|
||||
self.setupUi(self)
|
||||
|
||||
|
@ -78,6 +78,7 @@ class PromptDialog(QtWidgets.QDialog, uic.loadUiType(DIALOG_UI_PATH)[0]):
|
|||
def showEvent(self, event):
|
||||
super(PromptDialog, self).showEvent(event)
|
||||
self.resize(540, 300)
|
||||
self.activateWindow()
|
||||
|
||||
def _checkbox_toggled(self, state):
|
||||
self.applyButton.setText("%s" % self._apply_text)
|
||||
|
|
Loading…
Add table
Reference in a new issue