Fix #39.
This commit is contained in:
parent
1e3170a3d3
commit
7f62cdabe7
1 changed files with 2 additions and 2 deletions
|
@ -11,6 +11,7 @@ import (
|
||||||
"os/exec"
|
"os/exec"
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"sync/atomic"
|
"sync/atomic"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
@ -78,8 +79,7 @@ func (d *progressDialog) wait(extra *string, out *bytes.Buffer) {
|
||||||
case eerr.ExitCode() == -1 && atomic.LoadInt32(&d.closed) != 0:
|
case eerr.ExitCode() == -1 && atomic.LoadInt32(&d.closed) != 0:
|
||||||
err = nil
|
err = nil
|
||||||
case eerr.ExitCode() == 1:
|
case eerr.ExitCode() == 1:
|
||||||
out := bytes.TrimSuffix(out.Bytes(), []byte{'\n'})
|
if extra != nil && *extra == strings.TrimSuffix(out.String(), "\n") {
|
||||||
if extra != nil && *extra == string(out) {
|
|
||||||
err = ErrExtraButton
|
err = ErrExtraButton
|
||||||
} else {
|
} else {
|
||||||
err = ErrCanceled
|
err = ErrCanceled
|
||||||
|
|
Loading…
Reference in a new issue