mirror of
https://github.com/LorenEteval/Furious.git
synced 2026-10-04 04:48:00 +03:00
Update Menu in Widget.py
Signed-off-by: Loren Eteval <loren.eteval@proton.me>
This commit is contained in:
@@ -149,10 +149,11 @@ class Menu(Translatable, SupportConnectedCallback, QMenu):
|
||||
for action in actions:
|
||||
if isinstance(action, Seperator):
|
||||
self.addSeparator()
|
||||
else:
|
||||
assert isinstance(action, Action)
|
||||
|
||||
elif isinstance(action, Action):
|
||||
self.addAction(action)
|
||||
else:
|
||||
# Do nothing
|
||||
pass
|
||||
|
||||
if APP().tray is not None and APP().tray.ConnectAction.isConnected():
|
||||
self.setStyleSheet(self.getStyleSheet(Color.LIGHT_RED_))
|
||||
|
||||
Reference in New Issue
Block a user