mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 21:04:40 +01:00
move time label calculation above value changes
This commit is contained in:
parent
fd6c6eade4
commit
cf6cf0bf14
1 changed files with 6 additions and 7 deletions
|
|
@ -435,6 +435,12 @@ class PluginDetailsWidget(QtWidgets.QWidget):
|
|||
plugin_label += " ({})".format(
|
||||
plugin_item.plugin_type.capitalize()
|
||||
)
|
||||
|
||||
time_label = "Not started"
|
||||
if plugin_item.passed:
|
||||
time_label = get_pretty_milliseconds(plugin_item.process_time)
|
||||
elif plugin_item.skipped:
|
||||
time_label = "Skipped plugin"
|
||||
plugin_label_widget.setText(plugin_label)
|
||||
plugin_doc_widget.setText(plugin_item.docstring or "N/A")
|
||||
plugin_class_widget.setText(plugin_item.name or "N/A")
|
||||
|
|
@ -442,13 +448,6 @@ class PluginDetailsWidget(QtWidgets.QWidget):
|
|||
plugin_families_widget.setText(str(plugin_item.families or "N/A"))
|
||||
plugin_path_widget.setText(plugin_item.filepath or "N/A")
|
||||
plugin_path_widget.setToolTip(plugin_item.filepath or None)
|
||||
if plugin_item.passed:
|
||||
time_label = get_pretty_milliseconds(plugin_item.process_time)
|
||||
elif plugin_item.skipped:
|
||||
time_label = "Skipped plugin"
|
||||
else:
|
||||
time_label = "Not started"
|
||||
|
||||
plugin_time_widget.setText(time_label)
|
||||
|
||||
content_layout = QtWidgets.QGridLayout(content_widget)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue