|
|
@@ -271,8 +271,9 @@ namespace Shadowsocks.View |
|
|
|
this.editLocalPACItem = CreateMenuItem("Edit Local PAC File...", new EventHandler(this.EditPACFileItem_Click)),
|
|
|
|
this.updateFromGFWListItem = CreateMenuItem("Update Local PAC from GFWList", new EventHandler(this.UpdatePACFromGFWListItem_Click)),
|
|
|
|
this.editGFWUserRuleItem = CreateMenuItem("Edit User Rule for GFWList...", new EventHandler(this.EditUserRuleFileForGFWListItem_Click)),
|
|
|
|
this.editOnlinePACItem = CreateMenuItem("Edit Online PAC URL...", new EventHandler(this.UpdateOnlinePACURLItem_Click)),
|
|
|
|
this.secureLocalPacUrlToggleItem = CreateMenuItem("Secure Local PAC", new EventHandler(this.SecureLocalPacUrlToggleItem_Click)),
|
|
|
|
CreateMenuItem("Copy Local PAC URL", new EventHandler(this.CopyLocalPacUrlItem_Click)),
|
|
|
|
this.editOnlinePACItem = CreateMenuItem("Edit Online PAC URL...", new EventHandler(this.UpdateOnlinePACURLItem_Click)),
|
|
|
|
}),
|
|
|
|
this.proxyItem = CreateMenuItem("Forward Proxy...", new EventHandler(this.proxyItem_Click)),
|
|
|
|
new MenuItem("-"),
|
|
|
@@ -805,6 +806,11 @@ namespace Shadowsocks.View |
|
|
|
controller.ToggleSecureLocalPac(!configuration.secureLocalPac);
|
|
|
|
}
|
|
|
|
|
|
|
|
private void CopyLocalPacUrlItem_Click(object sender, EventArgs e)
|
|
|
|
{
|
|
|
|
controller.CopyPacUrl();
|
|
|
|
}
|
|
|
|
|
|
|
|
private void UpdatePACItemsEnabledStatus()
|
|
|
|
{
|
|
|
|
if (this.localPACItem.Checked)
|
|
|
|