Removed duplicate isChecked, since there is IsChecked.
This commit is contained in:
parent
2909ef7cea
commit
568d8f0897
@ -322,33 +322,16 @@ func (s *queueAllStatistics) IsChecked(status convertor.StatusContract) bool {
|
|||||||
|
|
||||||
func (s *queueAllStatistics) redrawingQueueItems(queueItems *map[int]queueLayoutItem) {
|
func (s *queueAllStatistics) redrawingQueueItems(queueItems *map[int]queueLayoutItem) {
|
||||||
for _, item := range *queueItems {
|
for _, item := range *queueItems {
|
||||||
if s.isChecked(item.status) == true && item.CanvasObject.Visible() == false {
|
if s.IsChecked(item.status) == true && item.CanvasObject.Visible() == false {
|
||||||
item.CanvasObject.Show()
|
item.CanvasObject.Show()
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if s.isChecked(item.status) == false && item.CanvasObject.Visible() == true {
|
if s.IsChecked(item.status) == false && item.CanvasObject.Visible() == true {
|
||||||
item.CanvasObject.Hide()
|
item.CanvasObject.Hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (s *queueAllStatistics) isChecked(status convertor.StatusContract) bool {
|
|
||||||
if status == convertor.StatusType(convertor.InProgress) {
|
|
||||||
return s.inProgress.GetCheckbox().Checked
|
|
||||||
}
|
|
||||||
if status == convertor.StatusType(convertor.Completed) {
|
|
||||||
return s.completed.GetCheckbox().Checked
|
|
||||||
}
|
|
||||||
if status == convertor.StatusType(convertor.Error) {
|
|
||||||
return s.error.GetCheckbox().Checked
|
|
||||||
}
|
|
||||||
if status == convertor.StatusType(convertor.Waiting) {
|
|
||||||
return s.waiting.GetCheckbox().Checked
|
|
||||||
}
|
|
||||||
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func (s *queueAllStatistics) checkboxChecked() {
|
func (s *queueAllStatistics) checkboxChecked() {
|
||||||
if s.total.GetCheckbox().Checked == true {
|
if s.total.GetCheckbox().Checked == true {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user