refactor: extract shared mixins, fix cpu waste, resolve browser icons
- Extract CloseButtonRevealerMixin, PullToRefreshMixin, BasePlayerBoxStack - Replace mpris.py 2s+5s D-Bus polling with Seeked signal subscription - Remove redundant desktop/main.py os.listdir() poll (FileMonitor covers) - Remove switcher/main.py 200ms capture timer, chain from frame-ready - Resolve browser MPRIS icons via desktop file lookup, fallback to app name - Fix CodeQL py/clear-text-storage by rounding lat/lon and stripping from cache
This commit is contained in:
14 files changed
+515
-740
No files matched your search
@@ -574,16 +574,7 @@ class ApplicationSwitcher(Window):
|
||||
item.preview_image.set_from_pixbuf(pixbuf)
|
||||
|
||||
if self.get_visible() and config().get("switcher_live_preview", True):
|
||||
fps_delay = config().get("switcher.live_preview_delay_ms", 200)
|
||||
invoke_repeater(
|
||||
fps_delay,
|
||||
lambda: (
|
||||
self._capture.capture_by_handle(full_addr, 300, 168, True)
|
||||
if self.get_visible()
|
||||
else False
|
||||
),
|
||||
initial_call=False,
|
||||
)
|
||||
self._capture.capture_by_handle(full_addr, 300, 168, True)
|
||||
except Exception:
|
||||
logger.exception("_on_frame_ready error")
|
||||
|
||||
|
||||
Reference in new issue
Block a user