mirror of
https://github.com/Baipyrus/ProxySwitcher.git
synced 2024-12-26 12:41:45 +00:00
changed naming for per-program proxy configs
This commit is contained in:
parent
ea6990681e
commit
a66ffd0e4c
@ -12,9 +12,9 @@ import (
|
|||||||
// saveCmd represents the save command
|
// saveCmd represents the save command
|
||||||
var saveCmd = &cobra.Command{
|
var saveCmd = &cobra.Command{
|
||||||
Use: "save",
|
Use: "save",
|
||||||
Short: "Save some new internet proxy settings",
|
Short: "Save a new internet proxy config",
|
||||||
Run: func(cmd *cobra.Command, args []string) {
|
Run: func(cmd *cobra.Command, args []string) {
|
||||||
fmt.Printf("Saving New Proxy Settings...\n")
|
fmt.Printf("Saving New Proxy Config...\n")
|
||||||
|
|
||||||
// Block process until interrupted
|
// Block process until interrupted
|
||||||
done := make(chan os.Signal, 1)
|
done := make(chan os.Signal, 1)
|
||||||
|
2
run.ps1
2
run.ps1
@ -37,7 +37,7 @@ $ctxDisable.Add_Click({
|
|||||||
|
|
||||||
# Add "Save Proxy Setting" menu item
|
# Add "Save Proxy Setting" menu item
|
||||||
$ctxSave = New-Object System.Windows.Forms.ToolStripMenuItem
|
$ctxSave = New-Object System.Windows.Forms.ToolStripMenuItem
|
||||||
$ctxSave.Text = 'Save New Proxy'
|
$ctxSave.Text = 'Save New Config'
|
||||||
$ctxSave.Add_Click({
|
$ctxSave.Add_Click({
|
||||||
Start-Process powershell.exe -ArgumentList '-Command', 'go run . save'
|
Start-Process powershell.exe -ArgumentList '-Command', 'go run . save'
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user