1
0
mirror of https://github.com/taigrr/wtf synced 2025-01-18 04:03:14 -08:00

14 Commits

Author SHA1 Message Date
Jon Hadfield
3dbfc14056
remove spurious formatting. 2020-06-22 18:56:53 +01:00
Jon Hadfield
0b63a56e40
enable user to disable emoji for weather module. 2020-06-22 18:47:28 +01:00
Chris Cummer
3a388fba23
20191215 code improvements (#790)
* Upgrade godo to latest
* Fix a bunch of issues found by
* Running staticcheck on a codebase for the first time is a sobering experience
* go mod tidy
* More static improvements

Signed-off-by: Chris Cummer <chriscummer@me.com>
2019-12-16 20:25:29 -08:00
Sean Smith
14e7619075 Renormalize the redraw function
Have all instances take a function
Update the remaining modules to take this into account
Numerous smaller refactors to make some widgets work more or less the same
2019-08-27 21:51:37 -04:00
Sean Smith
264f49fd2c Fix race with HighlightableHelper
GetRect can lead to a race condition
Add a RenderFunc method so that we can call try to
wrap even more of our rendering in the thread safe
`QueueUpdateDraw` method
2019-08-24 22:15:35 -04:00
Chris Cummer
b07f3c5e67 Reimpliments the module configuration validation
Now supports displaying errors from multiple widgets.
2019-07-07 16:04:43 -07:00
Kirill Motkov
f0771cd013 Some code improvements
* Some assignments simplified by using assignment operators
* Rewrite switch statement with only one case as if.
* Rewrite if-else chain as a switch statement.
* go fmt `modules/todoist/project.go` file.
2019-05-21 17:29:09 +03:00
Chris Cummer
accfa70ba5 Don't panic when there's no city data for Weather 2019-05-15 18:32:25 -07:00
Chris Cummer
075402315e Fix missing title in Clocks 2019-05-10 08:42:37 -07:00
Chris Cummer
68ed842c87 Fix double-render of title in Weather 2019-05-10 08:42:37 -07:00
Sean Smith
018d2af3ae Add a global Redraw method for TextWidget
Partially addresses #429, by centralizing widget drawing
2019-05-10 08:42:37 -07:00
Chris Cummer
88fdf9702b WTF-400 Move settings-related functions from util.go into common_settings.go 2019-04-21 21:35:45 -07:00
Chris Cummer
cfdfb044da WTF-400 Weather extracted to new config format 2019-04-16 21:10:58 -07:00
Sean Smith
8030380f89 Migrate all modules to their own subfolder
Handles #375
2019-02-18 11:16:34 -05:00