Skip to content

Commit 92ac6b9

Browse files
authored
1.0
First official release.
1 parent befc074 commit 92ac6b9

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

ROOT/softwares/settings/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ def check_updates_launch():
269269
text = "Check for updates",
270270
command = check_updates_launch
271271
)
272-
#update_checker_btn.grid(row=frame.grid_size()[1], column=0, columnspan=2)
272+
update_checker_btn.grid(row=frame.grid_size()[1], column=0, columnspan=2)
273273

274274
def install_update_launch():
275275
install_update()

ROOT/softwares/webapp_generator.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
from cefpython3 import cefpython as cef
22
import ctypes
3+
import json
4+
try:
5+
registry_file = open("../../registry.json", "r")
6+
except FileNotFoundError:
7+
registry_file = open("registry.json", "r")
8+
REGISTRY = json.load(registry_file)
9+
registry_file.close()
10+
try:
11+
general_data_file = open("../../general_data.json", "r")
12+
except FileNotFoundError:
13+
general_data_file = open("general_data.json", "r")
14+
general_data = json.load(general_data_file)
15+
16+
current_user = general_data["last_connected_user"]
317

418
try:
519
import tkinter as tk
@@ -39,9 +53,11 @@ def launch(frame, URL, **settings):
3953
sys.excepthook = cef.ExceptHook # To shutdown all CEF processes on error
4054
# Tk must be initialized before CEF otherwise fatal error (Issue #306)
4155
app = MainFrame(frame, URL)
56+
if not "cache_path" in settings.keys():
57+
settings["cache_path"] = f"ROOT/{REGISTRY['USERS_FOLDER']}/{current_user}/{REGISTRY['USERDATA_NAME']}"
4258
if MAC:
4359
settings["external_message_pump"] = True
44-
cef.Initialize(settings=settings)
60+
cef.Initialize(settings=settings, switches={"enable-media-stream": True})
4561

4662
class MainFrame(tk.Frame):
4763
def __init__(self, frame, URL):

0 commit comments

Comments
 (0)