Upgrade to stone v0.2.0

This commit is contained in:
Sasha Koshka 2022-11-24 22:21:28 -05:00
parent c64cda0870
commit cc7d516dbd
3 changed files with 4 additions and 4 deletions

2
go.mod
View File

@ -2,7 +2,7 @@ module git.tebibyte.media/sashakoshka/mathpan
go 1.19
require git.tebibyte.media/sashakoshka/stone v0.0.0-20221124013405-5a76bd0c223d
require git.tebibyte.media/sashakoshka/stone v0.2.0
require (
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 // indirect

4
go.sum
View File

@ -1,5 +1,5 @@
git.tebibyte.media/sashakoshka/stone v0.0.0-20221124013405-5a76bd0c223d h1:2uDDq+lHbhODq+6hmosmCcAaLOg55a7LOIhiJMzeSds=
git.tebibyte.media/sashakoshka/stone v0.0.0-20221124013405-5a76bd0c223d/go.mod h1:ISnqmX6xvItOot3eW3YWLcNFeJrGpKetQGQniAjnU2A=
git.tebibyte.media/sashakoshka/stone v0.2.0 h1:lLqv+0K+35skBKbRtXY1VAGjg+AO49bXvfHRrHb37b0=
git.tebibyte.media/sashakoshka/stone v0.2.0/go.mod h1:ISnqmX6xvItOot3eW3YWLcNFeJrGpKetQGQniAjnU2A=
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298 h1:1qlsVAQJXZHsaM8b6OLVo6muQUQd4CwkH/D3fnnbHXA=
github.com/BurntSushi/freetype-go v0.0.0-20160129220410-b763ddbfe298/go.mod h1:D+QujdIlUNfa0igpNMk6UIvlb6C252URs4yupRUV4lQ=
github.com/BurntSushi/graphics-go v0.0.0-20160129215708-b43f31a4a966 h1:lTG4HQym5oPKjL7nGs+csTgiDna685ZXjxijkne828g=

View File

@ -244,7 +244,7 @@ func onPress (button stone.Button, modifiers stone.Modifiers) {
case 'z':
switch selectedExpression.(type) {
case *Operation, nil:
case *Operation:
operation := selectedExpression.(*Operation)
operation.floating = !operation.floating
}