Fix space text script - keyboard for labels

I guess multi-line ui elements were not covered in the cleanup scripts.
This commit is contained in:
Dalai Felinto 2018-08-28 10:17:58 -03:00
parent 44df1ced6d
commit 2e9a0e1254
1 changed files with 3 additions and 3 deletions

View File

@ -60,17 +60,17 @@ class TEXT_HT_header(Header):
if text.filepath:
if text.is_dirty:
row.label(
iface_(f"File: *{text.filepath:s} (unsaved)"),
text=iface_(f"File: *{text.filepath:s} (unsaved)"),
translate=False,
)
else:
row.label(
iface_(f"File: {text.filepath:s}"),
text=iface_(f"File: {text.filepath:s}"),
translate=False,
)
else:
row.label(
"Text: External"
text="Text: External"
if text.library
else "Text: Internal"
)