Skip to content

Module systray update to mainstream #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Feb 4, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
54 changes: 35 additions & 19 deletions Gopkg.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions Gopkg.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,6 @@ required = ["goa.design/goa/codegen/generator"]
name = "github.com/blang/semver"
version = "3.5.1"

[[constraint]]
branch = "master"
name = "github.com/facchinm/systray"

[[constraint]]
name = "github.com/gin-gonic/gin"
Expand Down Expand Up @@ -98,6 +95,10 @@ required = ["goa.design/goa/codegen/generator"]
branch = "master"
name = "golang.org/x/crypto"

[[override]]
branch = "master"
name = "github.com/lxn/walk"

[[constraint]]
branch = "v0"
name = "gopkg.in/inconshreveable/go-update.v0"
Expand Down
8 changes: 5 additions & 3 deletions serialport.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,12 @@ type SpPortMessageRaw struct {
func (p *serport) reader() {

//var buf bytes.Buffer
ch := make([]byte, 1024)
timeCheckOpen := time.Now()
var buffered_ch bytes.Buffer

for {

ch := make([]byte, 1024)

n, err := p.portIo.Read(ch)

//if we detect that port is closing, break out o this for{} loop.
Expand All @@ -128,9 +127,12 @@ func (p *serport) reader() {
for i, w := 0, 0; i < n; i += w {
runeValue, width := utf8.DecodeRune(ch[i:n])
if runeValue == utf8.RuneError {
buffered_ch.Write(ch[i:n])
buffered_ch.Write(append(ch[i:n]))
break
}
if i == n {
buffered_ch.Reset()
}
data += string(runeValue)
w = width
}
Expand Down
6 changes: 3 additions & 3 deletions trayicon.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ import (
"runtime"

"github.com/arduino/arduino-create-agent/icon"
"github.com/facchinm/systray"
"github.com/getlantern/systray"
"github.com/go-ini/ini"
"github.com/kardianos/osext"
log "github.com/sirupsen/logrus"
Expand All @@ -47,9 +47,9 @@ import (
func setupSysTray() {
runtime.LockOSThread()
if *hibernate == true {
systray.Run(setupSysTrayHibernate)
systray.Run(setupSysTrayHibernate,nil)
} else {
systray.Run(setupSysTrayReal)
systray.Run(setupSysTrayReal,nil)
}
}

Expand Down
57 changes: 0 additions & 57 deletions vendor/github.com/facchinm/systray/README.md

This file was deleted.

10 changes: 0 additions & 10 deletions vendor/github.com/facchinm/systray/embeddll.bash

This file was deleted.

19 changes: 0 additions & 19 deletions vendor/github.com/facchinm/systray/signdll.bash

This file was deleted.

9 changes: 0 additions & 9 deletions vendor/github.com/facchinm/systray/systray.h

This file was deleted.

71 changes: 0 additions & 71 deletions vendor/github.com/facchinm/systray/systray_nonwindows.go

This file was deleted.

Loading