remove the static info label

This commit is contained in:
Andreas Zweili 2019-02-04 10:38:43 +01:00
parent cf55232fc5
commit 23dd1ae1a8
2 changed files with 7 additions and 18 deletions

View File

@ -100,7 +100,7 @@ class MainWindow(QMainWindow):
excludes=self.config.excludes,
prefix=self.config.prefix)
dialog = ProgressDialog(thread)
dialog.label_info.setText("creating a backup.")
dialog.label_info.setText("Borg-Qt is currently creating a backup.")
dialog.exec_()
self.update_ui()
except BorgException as e:
@ -134,7 +134,8 @@ class MainWindow(QMainWindow):
restore_path = os.path.join(target_path, archive_name)
thread = borg.RestoreThread(archive_name, restore_path)
dialog = ProgressDialog(thread)
dialog.label_info.setText("restoring a backup.")
dialog.label_info.setText(
"Borg-Qt is currently restoring a backup.")
dialog.exec_()
open_path(restore_path)
except BorgException as e:
@ -153,7 +154,8 @@ class MainWindow(QMainWindow):
try:
thread = borg.DeleteThread(archive_name)
dialog = ProgressDialog(thread)
dialog.label_info.setText("deleting a backup.")
dialog.label_info.setText(
"Borg-Qt is currently deleting a backup.")
dialog.exec_()
self.update_ui()
except BorgException as e:

View File

@ -32,25 +32,12 @@
<bool>true</bool>
</property>
</widget>
<widget class="QLabel" name="label_static_info">
<widget class="QLabel" name="label_info">
<property name="geometry">
<rect>
<x>20</x>
<y>10</y>
<width>141</width>
<height>20</height>
</rect>
</property>
<property name="text">
<string>Borg-Qt is currently</string>
</property>
</widget>
<widget class="QLabel" name="label_info">
<property name="geometry">
<rect>
<x>140</x>
<y>10</y>
<width>231</width>
<width>361</width>
<height>20</height>
</rect>
</property>