Skip to content

Commit

Permalink
Latest saver library
Browse files Browse the repository at this point in the history
  • Loading branch information
andydotxyz committed Jan 25, 2025
1 parent 0719c0a commit 1c6b1d2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ require (
github.com/BurntSushi/xgbutil v0.0.0-20160919175755-f7c97cef3b4e
github.com/FyshOS/appie v0.0.0-20250103211310-00f097d8e19d
github.com/FyshOS/backgrounds v0.0.0-20230616202904-0a8b6ebaa184
github.com/FyshOS/saver v0.0.0-20250121095006-5664671ee7e6
github.com/FyshOS/saver v0.0.0-20250125211336-528339462781
github.com/Knetic/govaluate v3.0.0+incompatible
github.com/disintegration/imaging v1.6.2
github.com/godbus/dbus/v5 v5.1.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ github.com/FyshOS/appie v0.0.0-20250103211310-00f097d8e19d h1:bkIQPpxGMalOufoLbL
github.com/FyshOS/appie v0.0.0-20250103211310-00f097d8e19d/go.mod h1:Gtvb1fKDXbE9HjMtoYdB2MPSSGy6PdtMl0TC9dSF8q0=
github.com/FyshOS/backgrounds v0.0.0-20230616202904-0a8b6ebaa184 h1:Za0NHFsT0CCXf/X4hEaywjvEECccrM/xVVL8BzAy6JI=
github.com/FyshOS/backgrounds v0.0.0-20230616202904-0a8b6ebaa184/go.mod h1:cOUmJ3HUVmH3W3u9Gj5hM73ZgrDxGNHKMr5T/sBKqLU=
github.com/FyshOS/saver v0.0.0-20250121095006-5664671ee7e6 h1:jxlIwF6vRAmpFfQ3yMvgzz1St7EATnAe4NRELD/WgCM=
github.com/FyshOS/saver v0.0.0-20250121095006-5664671ee7e6/go.mod h1:yIuAuYqnEyKaiNU4MD4xmyLcZl9QdDr2uTmT7lt02tI=
github.com/FyshOS/saver v0.0.0-20250125211336-528339462781 h1:jGmHNeimIf4DDEe8jkoUNX9r10+qGtkUG+3PMpjGSEs=
github.com/FyshOS/saver v0.0.0-20250125211336-528339462781/go.mod h1:yIuAuYqnEyKaiNU4MD4xmyLcZl9QdDr2uTmT7lt02tI=
github.com/Knetic/govaluate v3.0.0+incompatible h1:7o6+MAPhYTCF0+fdvoz1xDedhRb4f6s9Tn1Tt7/WTEg=
github.com/Knetic/govaluate v3.0.0+incompatible/go.mod h1:r7JcOSlj0wfOMncg0iLm8Leh48TZaKVeNIfJntJ2wa0=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
Expand Down
5 changes: 4 additions & 1 deletion internal/ui/menu.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,10 @@ func (w *widgetPanel) showAccountMenu(_ fyne.CanvasObject) {
isEmbed := w.desk.(*desktop).root.Title() != RootWindowName
items1 = append(items1, &widget.Button{Icon: wmtheme.LockIcon, Importance: widget.LowImportance, OnTapped: func() {
w2.Close()
w.desk.TriggerScreensaver(true)
go func() {
time.Sleep(time.Millisecond * 300)
w.desk.TriggerScreensaver(true)
}()
}})
if !isEmbed {
if os.Getenv("FYNE_DESK_RUNNER") != "" {
Expand Down

0 comments on commit 1c6b1d2

Please sign in to comment.