Skip to content

Commit

Permalink
先显示导入结果,再连接节点
Browse files Browse the repository at this point in the history
  • Loading branch information
DearDawalish committed Jun 25, 2023
1 parent 8301c5c commit 7efdaa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion forms/main/xray.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -1206,9 +1206,9 @@ frmXray.btnImportServerFromClipBd.oncommand = function(id,event){
..table.append(config.proxy.outbounds,outbounds);
// 防止首次粘贴时,下载core失败导致没有保存节点的情况,所以手动save一下
config.proxy.save();
frmXray.msgOk("已成功导入" + #outbounds + "个服务器",1200);
publish("uiCommand.restartxrayCore");
publish("outbounds.updateConfigJson");
frmXray.msgOk("已成功导入" + #outbounds + "个服务器",1200);
return;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/xray/outbounds.aardio
Original file line number Diff line number Diff line change
Expand Up @@ -1109,9 +1109,9 @@ updateSubscription = function(outbondSubscribeUrlMap){
}

..config.proxy.save();
..mainForm.msgOk("已刷新" + count + "个订阅服务器。",1500);
..publish("outbounds.updateConfigJson");
..publish("uiCommand.restartxrayCore",cfgOutbounds)
..mainForm.msgOk("已刷新" + count + "个订阅服务器。",1500);

return count;
}
Expand Down

0 comments on commit 7efdaa0

Please sign in to comment.