Версия 1.0.0 #11
@ -322,33 +322,16 @@ func (s *queueAllStatistics) IsChecked(status convertor.StatusContract) bool {
|
||||
|
||||
func (s *queueAllStatistics) redrawingQueueItems(queueItems *map[int]queueLayoutItem) {
|
||||
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()
|
||||
continue
|
||||
}
|
||||
if s.isChecked(item.status) == false && item.CanvasObject.Visible() == true {
|
||||
if s.IsChecked(item.status) == false && item.CanvasObject.Visible() == true {
|
||||
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() {
|
||||
if s.total.GetCheckbox().Checked == true {
|
||||
return
|
||||
|
Loading…
x
Reference in New Issue
Block a user