Skip to content

Commit

Permalink
优化菜单加载流程
Browse files Browse the repository at this point in the history
  • Loading branch information
lunzhiPenxil committed Aug 2, 2022
1 parent 87fa9d5 commit 4665fb9
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions OlivOS/nativeWinUIAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ def mainrun(self):
self.startOlivOSTerminalUI()

def updateShallowMenuList(self):
tmp_new = []
self.UIData['shallow_menu_list'] = [
['账号管理', False],
['打开终端', self.startOlivOSTerminalUISend],
Expand All @@ -215,6 +216,13 @@ def updateShallowMenuList(self):
['重载插件', self.sendPluginRestart],
['退出OlivOS', self.setOlivOSExit]
]
for data_this in self.UIData['shallow_menu_list']:
if data_this[0] == 'gocqhttp管理':
if data_this[1] != None:
tmp_new.append(data_this)
else:
tmp_new.append(data_this)
self.UIData['shallow_menu_list'] = tmp_new

def startGoCqhttpTerminalUISendFunc(self, hash):
def resFunc():
Expand Down

0 comments on commit 4665fb9

Please sign in to comment.