Skip to content

Commit

Permalink
round play_action to 2 decimal places when saving config
Browse files Browse the repository at this point in the history
  • Loading branch information
fe-art committed Sep 11, 2024
1 parent 3ae4a88 commit de66739
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clashroyalebuildabot/gui/main_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ def update_config(self) -> dict:
"auto_start_game"
] = self.auto_start_game_checkbox.isChecked()
self.config["bot"]["log_level"] = self.log_level_dropdown.currentText()
self.config["ingame"]["play_action"] = float(
self.play_action_delay_input.value()
self.config["ingame"]["play_action"] = round(
float(self.play_action_delay_input.value()), 2
)
self.config["adb"]["ip"] = self.adb_ip_input.text()
self.config["adb"]["device_serial"] = self.device_serial_input.text()
Expand Down

0 comments on commit de66739

Please sign in to comment.