Skip to content

Commit 48bbb4e

Browse files
committed
当更新源设置为Gitee时,点击“更多插件下载”跳转到Gitee的页面
1 parent 7925227 commit 48bbb4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

TrafficMonitor/PluginManagerDlg.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,10 @@ BOOL CPluginManagerDlg::OnInitDialog()
185185
m_list_ctrl.SetItemText(index, COL_STATUS, status);
186186
}
187187

188-
m_plugin_download_lnk.SetURL(L"https://github.com/zhongyang219/TrafficMonitorPlugins/blob/main/download/plugin_download.md");
188+
if (theApp.m_general_data.update_source == 1) //更新源为Gitee,跳转到Gitee的链接
189+
m_plugin_download_lnk.SetURL(L"https://gitee.com/zhongyang219/TrafficMonitorPlugins/blob/main/download/plugin_download.md");
190+
else //更新源为Github
191+
m_plugin_download_lnk.SetURL(L"https://github.com/zhongyang219/TrafficMonitorPlugins/blob/main/download/plugin_download.md");
189192
m_plugin_dev_guide_lnk.SetURL(L"https://github.com/zhongyang219/TrafficMonitor/wiki/%E6%8F%92%E4%BB%B6%E5%BC%80%E5%8F%91%E6%8C%87%E5%8D%97");
190193
m_open_plugin_dir_lnk.SetLinkIsURL(false);
191194

0 commit comments

Comments
 (0)