Версия 1.0.0 #11

Merged
kor-elf merged 41 commits from develop into main 2025-06-14 22:56:20 +05:00
Showing only changes of commit 568d8f0897 - Show all commits

View File

@ -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