Skip to content

Commit

Permalink
Merge pull request #310 : fix loading data with webViewer
Browse files Browse the repository at this point in the history
fix loading data with webViewer
  • Loading branch information
tmichela authored Sep 11, 2024
2 parents 8275706 + 669dd7e commit d672ff0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions damnit/gui/main_window.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
import os
import shelve
import sys
import time
Expand Down Expand Up @@ -1037,10 +1038,14 @@ def prompt_setup_db_and_backend(context_dir: Path, prop_no=None, parent=None):


def run_app(context_dir, software_opengl=False, connect_to_kafka=True):
QtWidgets.QApplication.setAttribute(Qt.AA_EnableHighDpiScaling)
QtWidgets.QApplication.setAttribute(
QtCore.Qt.ApplicationAttribute.AA_DontUseNativeMenuBar,
)

# Required for the WebViewer to load pages
os.environ['QTWEBENGINE_CHROMIUM_FLAGS'] = '--no-sandbox'

if software_opengl:
QtWidgets.QApplication.setAttribute(
Qt.AA_UseSoftwareOpenGL
Expand Down

0 comments on commit d672ff0

Please sign in to comment.