Skip to content

Commit

Permalink
Fix download CA dialog and repear label
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaidiz committed Jan 13, 2020
1 parent ed9b675 commit da62aac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSs
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/elazarl/goproxy v0.0.0-20191011121108-aa519ddbe484 h1:pEtiCjIXx3RvGjlUJuCNxNOw0MNblyR9Wi+vJGBFh+8=
github.com/elazarl/goproxy v0.0.0-20191011121108-aa519ddbe484/go.mod h1:Ro8st/ElPeALwNFlcTpWmkr6IoMFfkjXAvTHpevnDsM=
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2 h1:dWB6v3RcOy03t/bUadywsbyrQwCqZeNIEX6M1OtSZOM=
github.com/elazarl/goproxy/ext v0.0.0-20190711103511-473e67f1d7d2/go.mod h1:gNh8nYJoAm43RfaxurUnxr+N1PwuFV3ZMl/efxlIlY8=
github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e h1:XWcjeEtTFTOVA9Fs1w7n2XBftk5ib4oZrhzWk0B+3eA=
github.com/gopherjs/gopherjs v0.0.0-20190411002643-bd77b112433e/go.mod h1:wJfORRmW1u3UXTncJ5qlYoELFm8eSnnEO6hX4iZ3EWY=
Expand Down
8 changes: 4 additions & 4 deletions modules/coreproxy/coreproxy_gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
const (
CopyURLLabel = "Copy URL"
CopyBaseURLLabel = "Copy base URL"
SendToRepeaterLabel = "Send to Repeater"
SendToRepeaterLabel = "Repeat"
ClearHistoryLabel = "Clear History"
)

Expand Down Expand Up @@ -454,11 +454,11 @@ func (g *CoreproxyGui) GetModuleGui() widgets.QWidget_ITF {
}

func (t *CoreproxyGui) FileSaveAs(s string) bool {
var fileDialog = widgets.NewQFileDialog2(nil, "Save as...", "", "")
var fileDialog = widgets.NewQFileDialog2(nil, "Save as...", "broxyca.pem", "PEM (*.pem)")
fileDialog.SetAcceptMode(widgets.QFileDialog__AcceptSave)
var mimeTypes = []string{"application/x-x509-ca-cert"}
var mimeTypes = []string{"application/x-pem-file"}
fileDialog.SetMimeTypeFilters(mimeTypes)
fileDialog.SetDefaultSuffix("der")
fileDialog.SetDefaultSuffix("pem")
if fileDialog.Exec() != int(widgets.QDialog__Accepted) {
return false
}
Expand Down

0 comments on commit da62aac

Please sign in to comment.