Skip to content

Commit 56b456a

Browse files
Merge pull request #1320 from lainedfles/gui_fix_reorder_system_rules
ui,stats: handle dict-wrapped notifs in callback
2 parents 2a8f13d + f69d64d commit 56b456a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ui/opensnitch/dialogs/stats.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1679,6 +1679,11 @@ def _cb_proc_details_clicked(self):
16791679
def _cb_notification_callback(self, node_addr, reply):
16801680
if reply.id in self._notifications_sent:
16811681
noti = self._notifications_sent[reply.id]
1682+
1683+
# convert dictionary sent from _cb_fw_table_rows_reordered()
1684+
if isinstance(noti, dict) and isinstance(noti["notif"].type, int):
1685+
noti = noti["notif"]
1686+
16821687
if noti.type == ui_pb2.TASK_START and reply.code != ui_pb2.ERROR:
16831688
noti_data = json.loads(noti.data)
16841689
if noti_data['name'] == "node-monitor":

0 commit comments

Comments
 (0)