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

Merge branch 'master' into gitlabmultisource

This commit is contained in:
Chris Cummer 2019-05-24 17:37:33 -07:00 committed by GitHub
commit ba9ed05013
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 5 deletions

View File

@ -2,6 +2,10 @@
## Unreleased
### 🐞 Fixed
* Todoist now properly updates list items when Refresh is called
## v0.10.3
* Invalid glog dependency removed, by [@bosr](https://github.com/bosr)

View File

@ -53,14 +53,16 @@ func (widget *Widget) ProjectAt(idx int) *Project {
return widget.projects[idx]
}
func (w *Widget) Refresh() {
if w.Disabled() || w.CurrentProject() == nil {
w.SetItemCount(0)
func (widget *Widget) Refresh() {
if widget.Disabled() || widget.CurrentProject() == nil {
widget.SetItemCount(0)
return
}
w.SetItemCount(len(w.CurrentProject().tasks))
w.display()
widget.loadProjects()
widget.SetItemCount(len(widget.CurrentProject().tasks))
widget.display()
}
func (widget *Widget) HelpText() string {