From 85a1decfb46783e63e34f5e8144d7168cedc071d Mon Sep 17 00:00:00 2001 From: Sakamoto Shiina <68018796+ShiinaSakamoto@users.noreply.github.com> Date: Wed, 15 May 2024 13:33:22 +0900 Subject: [PATCH] =?UTF-8?q?[Refactor]=20controller.py:=20match=20case?= =?UTF-8?q?=E6=96=87=E3=81=A7=E3=80=81=E5=90=8C=E3=81=98=E5=87=A6=E7=90=86?= =?UTF-8?q?=E3=81=AE=E3=82=82=E3=81=AE=E3=82=92=E3=81=BE=E3=81=A8=E3=82=81?= =?UTF-8?q?=E3=81=9F=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller.py | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/controller.py b/controller.py index 8e79c6f8..6bc134b6 100644 --- a/controller.py +++ b/controller.py @@ -897,21 +897,9 @@ def callbackSetOverlaySmallLogSettings(value, set_type:str): pre_settings[set_type] = value config.OVERLAY_SMALL_LOG_SETTINGS = pre_settings match (set_type): - case "x_pos": + case "x_pos" | "y_pos" | "depth" | "x_rotation" | "y_rotation" | "z_rotation": model.updateOverlayPosition() - case "y_pos": - model.updateOverlayPosition() - case "depth": - model.updateOverlayPosition() - case "x_rotation": - model.updateOverlayPosition() - case "y_rotation": - model.updateOverlayPosition() - case "z_rotation": - model.updateOverlayPosition() - case "display_duration": - model.updateOverlayTimes() - case "fadeout_duration": + case "display_duration" | "fadeout_duration": model.updateOverlayTimes() # Others Tab