From b2cf5b1fc9e6758b0d7a2e79a03d6740bee74826 Mon Sep 17 00:00:00 2001 From: Shivansh Singh <89853707+shivansh02@users.noreply.github.com> Date: Thu, 22 Feb 2024 01:41:45 +0530 Subject: [PATCH] Move log file link below logs table. By @shivansh02 (#1939) --- src/vorta/assets/UI/scheduletab.ui | 13 +++++++++++++ src/vorta/views/schedule_tab.py | 6 +++++- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/src/vorta/assets/UI/scheduletab.ui b/src/vorta/assets/UI/scheduletab.ui index 67dbc2c2f..f7cb7b34e 100644 --- a/src/vorta/assets/UI/scheduletab.ui +++ b/src/vorta/assets/UI/scheduletab.ui @@ -626,6 +626,19 @@ + + + + <html><head/><body><p><a href="file:///"><span style=" text-decoration: underline; color:#0984e3;">View the logs</span></a></p></body></html> + + + 0 + + + true + + + diff --git a/src/vorta/views/schedule_tab.py b/src/vorta/views/schedule_tab.py index a03b191c7..dc97cfa47 100644 --- a/src/vorta/views/schedule_tab.py +++ b/src/vorta/views/schedule_tab.py @@ -8,7 +8,7 @@ QTableWidgetItem, ) -from vorta import application +from vorta import application, config from vorta.i18n import get_locale from vorta.scheduler import ScheduleStatusType from vorta.store.models import BackupProfileMixin, EventLogModel, WifiSettingModel @@ -43,6 +43,10 @@ def __init__(self, parent=None): # Set up log table self.logTableWidget.setAlternatingRowColors(True) header = self.logTableWidget.horizontalHeader() + self.logLink.setText( + f'Click here for complete logs.' + ) header.setVisible(True) [header.setSectionResizeMode(i, QHeaderView.ResizeMode.ResizeToContents) for i in range(5)] header.setSectionResizeMode(3, QHeaderView.ResizeMode.Stretch)