should a config be loaded during engine startup

bypass _base_values.run_update

patch bump
This commit is contained in:
2023-09-07 08:39:20 +01:00
parent 1498daf36f
commit c684ed9981
3 changed files with 17 additions and 7 deletions

View File

@@ -4,10 +4,11 @@ import webbrowser
from functools import partial
from tkinter import messagebox
import sv_ttk
import vban_cmd
from vban_cmd.error import VBANCMDConnectionError
import sv_ttk
from .data import _base_values, _configuration, get_configuration, kind_get
logger = logging.getLogger(__name__)
@@ -238,10 +239,14 @@ class Menus(tk.Menu):
def load_custom_profile(self, profile):
self.logger.info(f"loading user profile {profile}")
self.target.apply(profile)
if not _base_values.run_update:
self.parent.subject.notify("pdirty")
def load_profile(self, profile):
self.logger.info(f"loading user profile {profile}")
self.target.apply_config(profile)
if not _base_values.run_update:
self.parent.subject.notify("pdirty")
def load_defaults(self):
msg = (