mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Fixed UI crash when configuring high dpi scaling on some systems
On LinuxMint18 even with a compatible PyQt lib, it crashes, so just don't set this option.
This commit is contained in:
parent
7eb0b6da30
commit
b409eca0ed
1 changed files with 4 additions and 1 deletions
|
@ -39,7 +39,10 @@ if __name__ == '__main__':
|
||||||
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
if supported_qt_version(5,6,0):
|
if supported_qt_version(5,6,0):
|
||||||
app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
try:
|
||||||
|
app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||||
|
except Exception:
|
||||||
|
pass
|
||||||
|
|
||||||
service = UIService(app, on_exit)
|
service = UIService(app, on_exit)
|
||||||
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))
|
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))
|
||||||
|
|
Loading…
Add table
Reference in a new issue