Skip to content

Commit

Permalink
Subscription conversion url
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed May 29, 2022
1 parent 2ead919 commit 6688fed
Show file tree
Hide file tree
Showing 8 changed files with 771 additions and 920 deletions.
1 change: 1 addition & 0 deletions clashN/clashN/Forms/MsgFilterSetForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 33 additions & 16 deletions clashN/clashN/Forms/OptionSettingForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions clashN/clashN/Forms/OptionSettingForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public OptionSettingForm()

private void OptionSettingForm_Load(object sender, EventArgs e)
{
cmbSubConvertUrl.Items.AddRange(Global.SubConvertUrls.ToArray());

InitBase();

InitGUI();
Expand Down Expand Up @@ -59,6 +61,8 @@ private void InitGUI()
txtautoUpdateInterval.Text = config.autoUpdateInterval.ToString();
txtautoUpdateSubInterval.Text = config.autoUpdateSubInterval.ToString();
chkEnableSecurityProtocolTls13.Checked = config.enableSecurityProtocolTls13;

cmbSubConvertUrl.Text = config.constItem.subConvertUrl;
}

private void btnOK_Click(object sender, EventArgs e)
Expand Down Expand Up @@ -153,6 +157,7 @@ private int SaveGUI()
config.autoUpdateSubInterval = Utils.ToInt(txtautoUpdateSubInterval.Text);
config.enableSecurityProtocolTls13 = chkEnableSecurityProtocolTls13.Checked;

config.constItem.subConvertUrl = cmbSubConvertUrl.Text.TrimEx();
return 0;
}

Expand Down
Loading

0 comments on commit 6688fed

Please sign in to comment.