refactor(modules): Clean up imports and centralize utilities- Enhancements:

- Remove redundant gi.repository imports
  - Move common utilities (GLib, GObject, logger, os) into fabric.utils
  - Centralize GLib usage and reduce namespace pollution
This commit is contained in:
sankalp committed 2026-04-10 00:10:40 +05:45
1 parent 9847bdf884
commit adb87456c7
12 files changed
+25 -41

No files matched your search

+2 -3
View File
@@ -6,9 +6,10 @@ from pathlib import Path
from typing import Dict, List, Optional
from urllib.parse import urlparse
from fabric.utils import GLib
from fabric.utils.helpers import get_relative_path
from thefuzz import fuzz
from fabric.utils.helpers import get_relative_path
from modules.launcher.plugin_base import PluginBase
from modules.launcher.result import Result
@@ -739,7 +740,6 @@ class BookmarksPlugin(PluginBase):
# Reset to trigger word with space
try:
from gi.repository import GLib
def reset_and_refresh():
# Set text to trigger word
@@ -772,7 +772,6 @@ class BookmarksPlugin(PluginBase):
# Trigger a search to refresh results
try:
from gi.repository import GLib
def refresh():
self._launcher_instance._perform_search(current_text)