Improved MessageBus contract

This commit is contained in:
2dust
2024-10-11 10:17:44 +08:00
parent b172b03927
commit a0286ff810
8 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ namespace ServiceLib.ViewModels
_config = AppHandler.Instance.Config;
_updateView = updateView;
MessageBus.Current.Listen<string>(Global.CommandSendMsgView).Subscribe(async x => await AppendQueueMsg(x));
MessageBus.Current.Listen<string>(EMsgCommand.SendMsgView.ToString()).Subscribe(async x => await AppendQueueMsg(x));
MsgFilter = _config.msgUIItem.mainMsgFilter ?? string.Empty;
AutoRefresh = _config.msgUIItem.autoRefresh ?? true;