Skip to content

Commit

Permalink
Fix About dialog wording and year. By @shivansh02 (#1936)
Browse files Browse the repository at this point in the history
* fix: about dialogue grammar and copyright year
* fix: made about dialogue copyright year dynamic
  • Loading branch information
shivansh02 authored Feb 14, 2024
1 parent d8cce25 commit 472c7c8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vorta/assets/UI/abouttab.ui
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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.
Expand Down
4 changes: 4 additions & 0 deletions src/vorta/views/about_tab.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import logging
from datetime import datetime

from PyQt6 import QtCore, uic

Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 472c7c8

Please sign in to comment.