1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-21 23:33:13 +00:00

Fix About dialog wording and year. By @shivansh02 (#1936)

* fix: about dialogue grammar and copyright year
* fix: made about dialogue copyright year dynamic
This commit is contained in:
Shivansh Singh 2024-02-14 17:05:33 +05:30 committed by GitHub
parent d8cce255eb
commit 472c7c8996
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 2 deletions

View file

@ -213,7 +213,7 @@
<item>
<widget class="QLabel" name="label">
<property name="text">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/borgbase/vorta&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0984e3;&quot;&gt;Click here&lt;/span&gt;&lt;/a&gt; for view Git repo.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;&lt;a href=&quot;https://github.com/borgbase/vorta&quot;&gt;&lt;span style=&quot; text-decoration: underline; color:#0984e3;&quot;&gt;Click here&lt;/span&gt;&lt;/a&gt; to view Git repo.&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="openExternalLinks">
<bool>true</bool>
@ -241,7 +241,7 @@
<number>20</number>
</property>
<item>
<widget class="QLabel" name="label">
<widget class="QLabel" name="copyrightLabel">
<property name="text">
<string>
Vorta is a cross-platform, open-source client designed to simplify the management of Borg backups.

View file

@ -1,4 +1,5 @@
import logging
from datetime import datetime
from PyQt6 import QtCore, uic
@ -28,6 +29,9 @@ def __init__(self, parent=None):
)
self.gpl_logo.setPixmap(get_colored_icon('gpl_logo', scaled_height=40, return_qpixmap=True))
self.python_logo.setPixmap(get_colored_icon('python_logo', scaled_height=40, return_qpixmap=True))
copyright_text = self.copyrightLabel.text()
copyright_text = copyright_text.replace('2020', str(datetime.now().year))
self.copyrightLabel.setText(copyright_text)
def set_borg_details(self, version, path):
self.borgVersion.setText(version)