Skip to content

Commit

Permalink
Small change to metadata lock
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-001 committed Mar 2, 2024
1 parent 3b49c00 commit d6cecd4
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions dolphie/Panels/metadata_locks_panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,13 @@ def create_panel(tab: Tab) -> DataTable:
column_value = lock[column_key]

# Get height of row based on the how many objects are in the OBJECT_NAME field
if column_key == "OBJECT_NAME" and column_value:
if len(column_value) > column_data["width"] and "\n" in column_value:
row_height = column_value.count("\n") + 1
if (
column_key == "OBJECT_NAME"
and column_value
and len(column_value) > column_data["width"]
and "\n" in column_value
):
row_height = column_value.count("\n") + 1
thread_value = column_value
else:
thread_value = format_value(lock, column_key, column_value)
Expand Down

0 comments on commit d6cecd4

Please sign in to comment.