From 754f5aa95590f7bc98c8f4f8fbe3f7f2a0a18e96 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Tue, 22 Apr 2025 22:30:20 +0100 Subject: [PATCH] Revert "ui(raylib): "exit" btn in text window on PC (#35052)" This reverts commit f9767d265010101f123dcdc261206cb7be8bb5d8. --- system/ui/text.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/system/ui/text.py b/system/ui/text.py index 9c7101dfe8..79c20ce8dc 100755 --- a/system/ui/text.py +++ b/system/ui/text.py @@ -1,7 +1,7 @@ #!/usr/bin/env python3 import re import pyray as rl -from openpilot.system.hardware import HARDWARE, PC +from openpilot.system.hardware import HARDWARE from openpilot.system.ui.lib.button import gui_button, ButtonStyle from openpilot.system.ui.lib.scroll_panel import GuiScrollPanel from openpilot.system.ui.lib.application import gui_app @@ -58,12 +58,9 @@ class TextWindow: rl.end_scissor_mode() button_bounds = rl.Rectangle(gui_app.width - MARGIN - BUTTON_SIZE.x, gui_app.height - MARGIN - BUTTON_SIZE.y, BUTTON_SIZE.x, BUTTON_SIZE.y) - ret = gui_button(button_bounds, "Exit" if PC else "Reboot", button_style=ButtonStyle.TRANSPARENT) + ret = gui_button(button_bounds, "Reboot", button_style=ButtonStyle.TRANSPARENT) if ret: - if PC: - gui_app.close() - else: - HARDWARE.reboot() + HARDWARE.reboot() return ret