From 66d04f802489c5b319b80392c9f073fffbbbe8b3 Mon Sep 17 00:00:00 2001 From: Fuzzy Date: Thu, 19 Sep 2024 13:01:22 -0500 Subject: [PATCH 1/2] use on_release instead to only send when the button is released on a location --- src/ManualClient.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ManualClient.py b/src/ManualClient.py index 59439bf..74eaa5e 100644 --- a/src/ManualClient.py +++ b/src/ManualClient.py @@ -288,7 +288,7 @@ def enable_death_link(self): self.death_link_button = Button(text="Death Link: Primed", size_hint_x=None, width=150) self.connect_layout.add_widget(self.death_link_button) - self.death_link_button.bind(on_press=self.send_death_link) + self.death_link_button.bind(on_release=self.send_death_link) def send_death_link(self, *args): if self.ctx.last_death_link: @@ -426,7 +426,7 @@ def build_tracker_and_locations_table(self): for location_id in self.listed_locations[location_category]: location_button = TreeViewButton(text=self.ctx.location_names.lookup_in_game(location_id), size_hint=(None, None), height=30, width=400) - location_button.bind(on_press=lambda *args, loc_id=location_id: self.location_button_callback(loc_id, *args)) + location_button.bind(on_release=lambda *args, loc_id=location_id: self.location_button_callback(loc_id, *args)) location_button.id = location_id category_layout.add_widget(location_button) @@ -438,7 +438,7 @@ def build_tracker_and_locations_table(self): victory_text = "VICTORY! (seed finished)" if victory_location["name"] == "__Manual Game Complete__" else "GOAL: " + victory_location["name"] location_button = TreeViewButton(text=victory_text, size_hint=(None, None), height=30, width=400) location_button.victory = True - location_button.bind(on_press=self.victory_button_callback) + location_button.bind(on_release=self.victory_button_callback) category_layout.add_widget(location_button) tracker_panel_scrollable.add_widget(tracker_panel) From 97d227b3298a6472dd0739f1fbdc8d3623b3c765 Mon Sep 17 00:00:00 2001 From: Fuzzy Date: Thu, 19 Sep 2024 17:32:30 -0500 Subject: [PATCH 2/2] forgot to update client version --- src/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/__init__.py b/src/__init__.py index 614cd37..950927e 100644 --- a/src/__init__.py +++ b/src/__init__.py @@ -420,7 +420,7 @@ def __init__(self, display_name: str, script_name: Optional[str] = None, func: O self.version = version def add_client_to_launcher() -> None: - version = 2024_08_11 # YYYYMMDD + version = 2024_09_19 # YYYYMMDD found = False for c in components: if c.display_name == "Manual Client":