mirror of
https://github.com/borgbase/vorta
synced 2025-01-03 13:45:49 +00:00
Move log file link below logs table. By @shivansh02 (#1939)
This commit is contained in:
parent
472c7c8996
commit
b2cf5b1fc9
2 changed files with 18 additions and 1 deletions
|
@ -625,6 +625,19 @@
|
||||||
</property>
|
</property>
|
||||||
</column>
|
</column>
|
||||||
</widget>
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="2" column="0">
|
||||||
|
<widget class="QLabel" name="logLink">
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><p><a href="file:///"><span style=" text-decoration: underline; color:#0984e3;">View the logs</span></a></p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="indent">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
<property name="openExternalLinks">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
QTableWidgetItem,
|
QTableWidgetItem,
|
||||||
)
|
)
|
||||||
|
|
||||||
from vorta import application
|
from vorta import application, config
|
||||||
from vorta.i18n import get_locale
|
from vorta.i18n import get_locale
|
||||||
from vorta.scheduler import ScheduleStatusType
|
from vorta.scheduler import ScheduleStatusType
|
||||||
from vorta.store.models import BackupProfileMixin, EventLogModel, WifiSettingModel
|
from vorta.store.models import BackupProfileMixin, EventLogModel, WifiSettingModel
|
||||||
|
@ -43,6 +43,10 @@ def __init__(self, parent=None):
|
||||||
# Set up log table
|
# Set up log table
|
||||||
self.logTableWidget.setAlternatingRowColors(True)
|
self.logTableWidget.setAlternatingRowColors(True)
|
||||||
header = self.logTableWidget.horizontalHeader()
|
header = self.logTableWidget.horizontalHeader()
|
||||||
|
self.logLink.setText(
|
||||||
|
f'<a href="file://{config.LOG_DIR}"><span style="text-decoration:'
|
||||||
|
'underline; color:#0984e3;">Click here</span></a> for complete logs.'
|
||||||
|
)
|
||||||
header.setVisible(True)
|
header.setVisible(True)
|
||||||
[header.setSectionResizeMode(i, QHeaderView.ResizeMode.ResizeToContents) for i in range(5)]
|
[header.setSectionResizeMode(i, QHeaderView.ResizeMode.ResizeToContents) for i in range(5)]
|
||||||
header.setSectionResizeMode(3, QHeaderView.ResizeMode.Stretch)
|
header.setSectionResizeMode(3, QHeaderView.ResizeMode.Stretch)
|
||||||
|
|
Loading…
Reference in a new issue