Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix loading data with webViewer #310

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -1040,10 +1041,14 @@


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

Check warning on line 1044 in damnit/gui/main_window.py

View check run for this annotation

Codecov / codecov/patch

damnit/gui/main_window.py#L1044

Added line #L1044 was not covered by tests
QtWidgets.QApplication.setAttribute(
QtCore.Qt.ApplicationAttribute.AA_DontUseNativeMenuBar,
)

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

Check warning on line 1050 in damnit/gui/main_window.py

View check run for this annotation

Codecov / codecov/patch

damnit/gui/main_window.py#L1050

Added line #L1050 was not covered by tests

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