mirror of
https://github.com/clockworkpi/LauncherGoDev.git
synced 2025-12-12 07:58:51 +01:00
...
This commit is contained in:
parent
2d753bf5b0
commit
71d028d3ac
5
main.go
5
main.go
@ -218,14 +218,15 @@ func InspectionTeam(main_screen *UI.MainScreen) {
|
||||
}
|
||||
}
|
||||
|
||||
//power stuff dealer
|
||||
//If not under awesomeWM, AutoRedraw improves the experience of gsnotify
|
||||
//awesomeWM can hold individual window's content from being polluted without redrawing
|
||||
func AutoRedraw(main_screen *UI.MainScreen) {
|
||||
|
||||
for {
|
||||
if main_screen.TitleBar.InLowBackLight < 0 {
|
||||
UI.SwapAndShow()
|
||||
}
|
||||
gotime.Sleep(500 * gotime.Millisecond)
|
||||
gotime.Sleep(650 * gotime.Millisecond)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user