[Refactor] Move the code that is related with Send Message Button Type. (It was remained at Others section but it should've move to Appearance section so.)
This commit is contained in:
@@ -832,6 +832,15 @@ class Controller:
|
||||
config.MESSAGE_BOX_RATIO = data
|
||||
return {"status":200, "result":config.MESSAGE_BOX_RATIO}
|
||||
|
||||
@staticmethod
|
||||
def getSendMessageButtonType(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.SEND_MESSAGE_BUTTON_TYPE}
|
||||
|
||||
@staticmethod
|
||||
def setSendMessageButtonType(data, *args, **kwargs) -> dict:
|
||||
config.SEND_MESSAGE_BUTTON_TYPE = data
|
||||
return {"status":200, "result":config.SEND_MESSAGE_BUTTON_TYPE}
|
||||
|
||||
@staticmethod
|
||||
def getShowResendButton(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.SHOW_RESEND_BUTTON}
|
||||
@@ -1420,15 +1429,6 @@ class Controller:
|
||||
config.SEND_ONLY_TRANSLATED_MESSAGES = False
|
||||
return {"status":200, "result":config.SEND_ONLY_TRANSLATED_MESSAGES}
|
||||
|
||||
@staticmethod
|
||||
def getSendMessageButtonType(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.SEND_MESSAGE_BUTTON_TYPE}
|
||||
|
||||
@staticmethod
|
||||
def setSendMessageButtonType(data, *args, **kwargs) -> dict:
|
||||
config.SEND_MESSAGE_BUTTON_TYPE = data
|
||||
return {"status":200, "result":config.SEND_MESSAGE_BUTTON_TYPE}
|
||||
|
||||
@staticmethod
|
||||
def getOverlaySmallLog(*args, **kwargs) -> dict:
|
||||
return {"status":200, "result":config.OVERLAY_SMALL_LOG}
|
||||
|
||||
Reference in New Issue
Block a user