refactor!(shared): remove unused constants and deprecated methods

This commit is contained in:
sankalp committed 2026-07-09 18:56:05 +05:45
1 parent 1403c5adc0
commit de9ab766c4
9 files changed
+4 -158

No files matched your search

-16
View File
@@ -54,10 +54,6 @@ class ModusDropdown(AppletWindow):
self.children = [self.event_box]
self.add_keybinding("escape", self.hide_dropdown)
def toggle_dropdown(self, button, parent=None):
self.toggle()
modus_service.current_dropdown = self.id if self.is_visible() else None
def hide_dropdown(self, *_):
if self.is_visible():
GLib.idle_add(lambda: self.hide())
@@ -68,18 +64,6 @@ class ModusDropdown(AppletWindow):
elif str(modus_service.current_dropdown) == str(self.id):
modus_service.current_dropdown = None
def hide_via_mousecapture(self):
self.hide()
def on_cursor_enter(self, *_):
self.show()
def on_cursor_leave(self, *_):
if self.is_hovered():
return
self.hide()
modus_service.dropdowns_hide = not modus_service.dropdowns_hide
def destroy(self):
"""Clean up resources and global references"""
global dropdowns