mirror of https://github.com/2dust/v2rayN
Optimize Update Subscription
parent
b9acd0ec28
commit
33dcef2285
|
@ -537,7 +537,12 @@ namespace v2rayN.ViewModels
|
|||
_noticeHandler?.SendMessage(msg);
|
||||
if (success)
|
||||
{
|
||||
RefreshServers();
|
||||
Reload();
|
||||
if (_config.uiItem.enableAutoAdjustMainLvColWidth)
|
||||
{
|
||||
_updateView("AdjustMainLvColWidth");
|
||||
}
|
||||
}
|
||||
}
|
||||
private void UpdateStatisticsHandler(ServerSpeedItem update)
|
||||
|
@ -1221,20 +1226,7 @@ namespace v2rayN.ViewModels
|
|||
|
||||
private void UpdateSubscriptionProcess(string subId, bool blProxy)
|
||||
{
|
||||
void _updateUI(bool success, string msg)
|
||||
{
|
||||
_noticeHandler?.SendMessage(msg);
|
||||
if (success)
|
||||
{
|
||||
RefreshServers();
|
||||
if (_config.uiItem.enableAutoAdjustMainLvColWidth)
|
||||
{
|
||||
_updateView("AdjustMainLvColWidth");
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
(new UpdateHandle()).UpdateSubscriptionProcess(_config, subId, blProxy, _updateUI);
|
||||
(new UpdateHandle()).UpdateSubscriptionProcess(_config, subId, blProxy, UpdateTaskHandler);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
|
Loading…
Reference in New Issue