mici home: right corner never opens settings (#39447)

This commit is contained in:
ferb-comma
2026-11-28 11:50:19 -06:00
committed by firestar5683
parent 6e25235e35
commit d4a9ffe4bd
+2 -4
View File
@@ -190,10 +190,8 @@ class MiciHomeLayout(Widget):
def _handle_mouse_release(self, mouse_pos: MousePos):
if not self._did_long_press:
relative_x = mouse_pos.x - self.rect.x
has_alerts = self._alert_count_callback and self._alert_count_callback() > 0
if has_alerts and relative_x > self.rect.width - ALERTS_ZONE_WIDTH:
if self._on_alerts_click:
if mouse_pos.x - self.rect.x > self.rect.width - ALERTS_ZONE_WIDTH:
if self._on_alerts_click and self._alert_count_callback and self._alert_count_callback() > 0:
self._on_alerts_click()
elif self._on_settings_click:
self._on_settings_click()