修复窗体初始化问题;

修复轮询模式payload获取异常的问题
This commit is contained in:
Muihd
2024-05-16 22:24:45 +08:00
parent 6856569339
commit 7f37c7344a
5 changed files with 18 additions and 7 deletions
+6 -5
View File
@@ -29,11 +29,7 @@ namespace BarrageGrab
InitializeComponent();
barServer.OnPrint += WssService_OnPrint;
barServer.Grab.Proxy.OnProxyStatus += Proxy_OnProxyStatus;
AppRuntime.RoomCaches.OnCache += RoomCaches_OnCache;
this.txb_wsaddr.Text = barServer.ServerLocation;
this.txb_upstreamProxy.Text = proxy.HttpUpstreamProxy;
this.cbx_barrageLog.Checked = AppSetting.Current.BarrageLog;
InitTabPages();
AppRuntime.RoomCaches.OnCache += RoomCaches_OnCache;
}
private void InitTabPages()
@@ -155,6 +151,11 @@ namespace BarrageGrab
private void FormView_Load(object sender, EventArgs e)
{
this.txb_wsaddr.Text = barServer.ServerLocation;
this.txb_upstreamProxy.Text = proxy.HttpUpstreamProxy;
this.cbx_barrageLog.Checked = AppSetting.Current.BarrageLog;
InitTabPages();
this.cbx_enableProxy.Checked = SystemProxy.ProxyIsOpen();
}