When reloading config also reload open-actions.conf
This commit is contained in:
parent
e8873804c0
commit
5ff66f6bfa
2 changed files with 6 additions and 0 deletions
|
|
@ -1648,6 +1648,8 @@ def load_config_file(self, *paths: str, apply_overrides: bool = True) -> None:
|
|||
if bad_lines:
|
||||
self.show_bad_config_lines(bad_lines)
|
||||
self.apply_new_options(opts)
|
||||
from .open_actions import load_open_actions
|
||||
load_open_actions.clear_cached()
|
||||
|
||||
def safe_delete_temp_file(self, path: str) -> None:
|
||||
if is_path_in_temp_dir(path):
|
||||
|
|
|
|||
|
|
@ -69,6 +69,7 @@ def __init__(self, func: Callable[[], _T]): ...
|
|||
def __call__(self) -> _T: ...
|
||||
def set_override(self, val: _T) -> None: ...
|
||||
def clear_override(self) -> None: ...
|
||||
def clear_cached(self) -> None: ...
|
||||
else:
|
||||
class RunOnce:
|
||||
|
||||
|
|
@ -84,6 +85,9 @@ def __call__(self):
|
|||
self._cached_result = self.__wrapped__()
|
||||
return self._cached_result
|
||||
|
||||
def clear_cached(self):
|
||||
self._cached_result = RunOnce
|
||||
|
||||
def set_override(self, val):
|
||||
self._override = val
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue