Skip to content

Commit 8c0707f

Browse files
committed
Ignore enable/disable overlay package
Don't track overlay package from being enabled/disabled as there's nothing to update in that case.
1 parent 7a48f09 commit 8c0707f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

core/settings.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from .overlay import with_ignored_overlay
88
from .utils.decorators import debounce
99
from .utils.logging import log
10-
from .utils.path import PACKAGE_NAME
10+
from .utils.path import PACKAGE_NAME, OVERLAY_ROOT
1111

1212
PACKAGE_SETTINGS = "A File Icon.sublime-settings"
1313
USER_SETTINGS = "Preferences.sublime-settings"
@@ -74,7 +74,9 @@ def _on_change_package():
7474
def _on_change_user():
7575
global _cached_packages
7676
settings = sublime.load_settings(USER_SETTINGS)
77-
packages = settings.get("ignored_packages")
77+
packages = settings.get("ignored_packages", [])
78+
if OVERLAY_ROOT in packages:
79+
packages.remove(OVERLAY_ROOT)
7880
if packages != _cached_packages:
7981
_cached_packages = packages
8082
themes.patch(_cached_settings, on_demand=True)

0 commit comments

Comments
 (0)