[bugfix] Main Page: Message Box Ratio. store the data in float and fix the bug that was set bit off message box's height.

This commit is contained in:
Sakamoto Shiina
2024-10-11 04:25:34 +09:00
parent 31d8b503d0
commit 99cd3d1df0
5 changed files with 6 additions and 5 deletions

View File

@@ -549,7 +549,7 @@ class Controller:
@staticmethod
def setMessageBoxRatio(data, *args, **kwargs) -> dict:
config.MESSAGE_BOX_RATIO = int(data)
config.MESSAGE_BOX_RATIO = float(data)
return {"status":200, "result":config.MESSAGE_BOX_RATIO}
@staticmethod