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:
sankalp committed 2026-07-31 01:35:25 +05:45
1 parent 92c2b92333
commit beab79a405
14 files changed
+515 -740

No files matched your search

+1 -10
View File
@@ -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")