Use separate tweak menus for clients and servers

Former-commit-id: 92a7ce68f150aa223bc5a78ba02dd7cb7c07317d
Former-commit-id: 838381c35f3fec2a8780772bef8fcac33e7baac1
This commit is contained in:
2023-06-08 14:46:47 -04:00
parent 8474807cd4
commit 93bffe2587
2 changed files with 63 additions and 63 deletions
+3 -5
View File
@@ -829,10 +829,9 @@ if __name__ == "__main__":
read_shortcut()
elif arguments[0] == 'tweak':
success_flag = True
from stweak import menu_repeat
menu_repeat(False)
from stweak import global_menu
global_menu(device_type, 'configuration options:')
# PORT START ARGS-SERVER
# server arguments
else:
if arg_count < 1:
@@ -848,11 +847,10 @@ if __name__ == "__main__":
elif arg_count == 1 and arguments[0] == 'tweak':
success_flag = True
from stweak import global_menu
global_menu(False)
global_menu(device_type, 'configuration options:')
elif arg_count > 2 and arguments[1] in ('add', 'del'):
success_flag = True
whitelist_manage(arguments[2])
# PORT END ARGS-SERVER
if arg_count > 0 and success_flag == 0 and arguments[0] != 'sync':
if device_type == 'client' and arguments[0] not in ('help', '-h', 'version', '-v', 'license'):