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"
|
||||
"runtime"
|
||||
"strconv"
|
||||
"strings"
|
||||
"sync/atomic"
|
||||
"time"
|
||||
)
|
||||
|
@ -78,8 +79,7 @@ func (d *progressDialog) wait(extra *string, out *bytes.Buffer) {
|
|||
case eerr.ExitCode() == -1 && atomic.LoadInt32(&d.closed) != 0:
|
||||
err = nil
|
||||
case eerr.ExitCode() == 1:
|
||||
out := bytes.TrimSuffix(out.Bytes(), []byte{'\n'})
|
||||
if extra != nil && *extra == string(out) {
|
||||
if extra != nil && *extra == strings.TrimSuffix(out.String(), "\n") {
|
||||
err = ErrExtraButton
|
||||
} else {
|
||||
err = ErrCanceled
|
||||
|
|
Loading…
Reference in a new issue