Fix status icons in preprocessing and script output panels
This commit is contained in:
parent
81e0aab111
commit
b042b9cb30
@ -256,7 +256,7 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
# Status icon
|
# Status icon
|
||||||
self.preprocessing_status_icon = Gtk.Image()
|
self.preprocessing_status_icon = Gtk.Image()
|
||||||
self.preprocessing_status_icon.set_from_icon_name("emblem-ok-symbolic")
|
self.preprocessing_status_icon.set_from_icon_name("object-select-symbolic")
|
||||||
preprocessing_header.append(self.preprocessing_status_icon)
|
preprocessing_header.append(self.preprocessing_status_icon)
|
||||||
|
|
||||||
self.preprocessing_results_container.append(preprocessing_header)
|
self.preprocessing_results_container.append(preprocessing_header)
|
||||||
@ -308,7 +308,7 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
# Status icon
|
# Status icon
|
||||||
self.script_status_icon = Gtk.Image()
|
self.script_status_icon = Gtk.Image()
|
||||||
self.script_status_icon.set_from_icon_name("emblem-ok-symbolic")
|
self.script_status_icon.set_from_icon_name("object-select-symbolic")
|
||||||
results_header.append(self.script_status_icon)
|
results_header.append(self.script_status_icon)
|
||||||
|
|
||||||
self.script_results_container.append(results_header)
|
self.script_results_container.append(results_header)
|
||||||
@ -925,7 +925,7 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
# Set status icon
|
# Set status icon
|
||||||
if script_result.success:
|
if script_result.success:
|
||||||
self.script_status_icon.set_from_icon_name("emblem-ok-symbolic")
|
self.script_status_icon.set_from_icon_name("object-select-symbolic")
|
||||||
output_text = script_result.output
|
output_text = script_result.output
|
||||||
else:
|
else:
|
||||||
self.script_status_icon.set_from_icon_name("dialog-error-symbolic")
|
self.script_status_icon.set_from_icon_name("dialog-error-symbolic")
|
||||||
@ -1006,7 +1006,7 @@ class RequestTabWidget(Gtk.Box):
|
|||||||
|
|
||||||
# Set status icon
|
# Set status icon
|
||||||
if preprocessing_result.success:
|
if preprocessing_result.success:
|
||||||
self.preprocessing_status_icon.set_from_icon_name("emblem-ok-symbolic")
|
self.preprocessing_status_icon.set_from_icon_name("object-select-symbolic")
|
||||||
output_text = preprocessing_result.output
|
output_text = preprocessing_result.output
|
||||||
else:
|
else:
|
||||||
self.preprocessing_status_icon.set_from_icon_name("dialog-error-symbolic")
|
self.preprocessing_status_icon.set_from_icon_name("dialog-error-symbolic")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user