Skip to content

Commit

Permalink
import watcher only if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
codesardine committed Nov 3, 2024
1 parent 7b5538b commit eb5863e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wito/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from wito.interface import API
from wito.utils import app_base_path, wito_base_path
from wito.extensions.ext_loader import extension_manager
from wito.file_watcher import setup_file_watcher


class WitoProtocolHandler:
Expand Down Expand Up @@ -88,6 +87,7 @@ def on_load_changed(self, web_view, load_event):
if load_event == WebKit.LoadEvent.FINISHED:
self.api.execute_pending_js()
if self.dev_mode:
from wito.file_watcher import setup_file_watcher
inspector = self.get_inspector()
if inspector:
inspector.show()
Expand Down

0 comments on commit eb5863e

Please sign in to comment.