mirror of
https://github.com/evilsocket/opensnitch.git
synced 2025-03-04 08:34:40 +01:00
Merge pull request #203 from MiWCryptAnalytics/patch-1
Add UI Scaling for HiDPi Support
This commit is contained in:
commit
abff18e201
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/python3
|
#!/usr/bin/python3
|
||||||
|
|
||||||
from PyQt5 import QtWidgets, QtGui
|
from PyQt5 import QtWidgets, QtGui, QtCore
|
||||||
|
|
||||||
import sys
|
import sys
|
||||||
import os
|
import os
|
||||||
|
@ -33,7 +33,9 @@ if __name__ == '__main__':
|
||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
os.environ["QT_AUTO_SCREEN_SCALE_FACTOR"] = "1"
|
||||||
app = QtWidgets.QApplication(sys.argv)
|
app = QtWidgets.QApplication(sys.argv)
|
||||||
|
app.setAttribute(QtCore.Qt.AA_EnableHighDpiScaling, True)
|
||||||
|
|
||||||
service = UIService(app, on_exit, args.config)
|
service = UIService(app, on_exit, args.config)
|
||||||
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))
|
server = grpc.server(futures.ThreadPoolExecutor(max_workers=4))
|
||||||
|
|
Loading…
Add table
Reference in a new issue