I think it may be more useful to place the Snippets dialog persistently on top of other windows, so even if user would click somewhere else the dialog is still on top of. The cases when it may be useful is that when writing quick snippet users may wants to take a quick look at binary - grab some data values or check the address.
This can be done easily with changing this line:
|
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint) |
into:
self.setWindowFlags(self.windowFlags() & ~Qt.WindowContextHelpButtonHint | Qt.WindowType.WindowStaysOnTopHint)
self.setFocusPolicy(Qt.StrongFocus)
or may be add Setting to control this behaviour.
I think it may be more useful to place the
Snippetsdialog persistently on top of other windows, so even if user would click somewhere else the dialog is still on top of. The cases when it may be useful is that when writing quick snippet users may wants to take a quick look at binary - grab some data values or check the address.This can be done easily with changing this line:
snippets/__init__.py
Line 282 in ceb917b
into:
or may be add Setting to control this behaviour.