Update order of imports and improve error handling in various modules
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import flet as ft
|
||||
import pathlib
|
||||
|
||||
import flet as ft
|
||||
|
||||
from ren_browser.logs import ERROR_LOGS, RET_LOGS
|
||||
|
||||
|
||||
def open_settings_tab(page: ft.Page, tab_manager):
|
||||
config_path = pathlib.Path(__file__).resolve().parents[2] / "config" / "config"
|
||||
try:
|
||||
|
||||
@@ -10,7 +10,6 @@ from ren_browser.tabs.tabs import TabsManager
|
||||
|
||||
|
||||
def build_ui(page: Page):
|
||||
import ren_browser.app as app_module
|
||||
page.theme_mode = ft.ThemeMode.DARK
|
||||
page.appbar = ft.AppBar()
|
||||
page.window.maximized = True
|
||||
|
||||
Reference in New Issue
Block a user