[Refactor] controller.py: match case文で、同じ処理のものをまとめた。
This commit is contained in:
@@ -897,21 +897,9 @@ def callbackSetOverlaySmallLogSettings(value, set_type:str):
|
|||||||
pre_settings[set_type] = value
|
pre_settings[set_type] = value
|
||||||
config.OVERLAY_SMALL_LOG_SETTINGS = pre_settings
|
config.OVERLAY_SMALL_LOG_SETTINGS = pre_settings
|
||||||
match (set_type):
|
match (set_type):
|
||||||
case "x_pos":
|
case "x_pos" | "y_pos" | "depth" | "x_rotation" | "y_rotation" | "z_rotation":
|
||||||
model.updateOverlayPosition()
|
model.updateOverlayPosition()
|
||||||
case "y_pos":
|
case "display_duration" | "fadeout_duration":
|
||||||
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":
|
|
||||||
model.updateOverlayTimes()
|
model.updateOverlayTimes()
|
||||||
|
|
||||||
# Others Tab
|
# Others Tab
|
||||||
|
|||||||
Reference in New Issue
Block a user