fix: dropdown callbacks, singleton about dialog, config-driven settings sidebar, switcher cache eviction
This commit is contained in:
4 files changed
+63
-200
No files matched your search
@@ -165,6 +165,7 @@ class ApplicationSwitcher(Window):
|
||||
def _get_pixbuf(self, class_name: str) -> GdkPixbuf.Pixbuf | None:
|
||||
key = (class_name, self.icon_size)
|
||||
if key in self._pixbuf_cache:
|
||||
self._pixbuf_cache.move_to_end(key)
|
||||
return self._pixbuf_cache[key]
|
||||
|
||||
if len(self._pixbuf_cache) > 128:
|
||||
|
||||
Reference in new issue
Block a user