Skip to content

Commit 1ad5986

Browse files
committed
Fix status display overflow and truncate long messages
- Add wordWrap to progressText label to prevent horizontal overflow - Truncate log messages over 300 characters with "..." suffix Fixes #1974, #1618
1 parent ff7c3b2 commit 1ad5986

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/vorta/assets/UI/main_window.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,6 +288,9 @@
288288
<property name="openExternalLinks">
289289
<bool>true</bool>
290290
</property>
291+
<property name="wordWrap">
292+
<bool>true</bool>
293+
</property>
291294
</widget>
292295
</item>
293296
<item row="1" column="1" alignment="Qt::AlignTop">

src/vorta/views/main_window.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,10 @@ def set_progress(self, text=''):
154154
self.progressText.setText(text)
155155
self.progressText.repaint()
156156

157-
def set_log(self, text=''):
157+
def set_log(self, text='', context=None):
158+
# Truncate very long messages to keep the status area readable
159+
if text and len(text) > 300:
160+
text = text[:300] + '...'
158161
self.logText.setText(text)
159162
self.logText.repaint()
160163

0 commit comments

Comments
 (0)