mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-29 16:23:55 +08:00
mici home: right corner never opens settings (#39447)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user