mirror of https://github.com/borgbase/vorta
Made change to the way file is opened and made a formatting change
This commit is contained in:
parent
3cbed4702c
commit
b684ff024f
|
@ -15,7 +15,13 @@ from typing import Any, Callable, Iterable, List, Optional, Tuple, TypeVar
|
|||
import psutil
|
||||
from PyQt6 import QtCore
|
||||
from PyQt6.QtCore import QFileInfo, QThread, pyqtSignal
|
||||
from PyQt6.QtWidgets import QApplication, QFileDialog, QSystemTrayIcon, QListView, QTreeView
|
||||
from PyQt6.QtWidgets import (
|
||||
QApplication,
|
||||
QFileDialog,
|
||||
QListView,
|
||||
QSystemTrayIcon,
|
||||
QTreeView,
|
||||
)
|
||||
|
||||
from vorta.borg._compatibility import BorgCompatibility
|
||||
from vorta.log import logger
|
||||
|
|
|
@ -642,8 +642,8 @@ class ArchiveTab(ArchiveTabBase, ArchiveTabUI, BackupProfileMixin):
|
|||
self.app.jobs_manager.add_job(job)
|
||||
|
||||
dialog = choose_file_dialog(self, self.tr("Choose Mount Point"), want_folder=True)
|
||||
if dialog.exec():
|
||||
receive()
|
||||
dialog.filesSelected.connect(receive)
|
||||
dialog.open()
|
||||
|
||||
def mount_result(self, result):
|
||||
if result['returncode'] == 0:
|
||||
|
@ -789,8 +789,8 @@ class ArchiveTab(ArchiveTabBase, ArchiveTabUI, BackupProfileMixin):
|
|||
self._set_status(params['message'])
|
||||
|
||||
dialog = choose_file_dialog(self, self.tr("Choose Extraction Point"), want_folder=True)
|
||||
if dialog.exec():
|
||||
receive()
|
||||
dialog.filesSelected.connect(receive)
|
||||
dialog.open()
|
||||
|
||||
window = ExtractDialog(archive, model)
|
||||
self._toggle_all_buttons(True)
|
||||
|
|
|
@ -72,8 +72,8 @@ class RepoWindow(AddRepoBase, AddRepoUI):
|
|||
self.is_remote_repo = False
|
||||
|
||||
dialog = choose_file_dialog(self, self.tr("Choose Location of Borg Repository"))
|
||||
if dialog.exec():
|
||||
receive()
|
||||
dialog.filesSelected.connect(receive)
|
||||
dialog.open()
|
||||
|
||||
def use_remote_repo_action(self):
|
||||
self.repoURL.setText('')
|
||||
|
|
|
@ -302,8 +302,8 @@ class SourceTab(SourceBase, SourceUI, BackupProfileMixin):
|
|||
|
||||
msg = self.tr("Choose directory to back up") if want_folder else self.tr("Choose file(s) to back up")
|
||||
dialog = choose_file_dialog(self, msg, want_folder=want_folder)
|
||||
if dialog.exec():
|
||||
receive(dialog)
|
||||
dialog.filesSelected.connect(receive)
|
||||
dialog.open()
|
||||
|
||||
def source_copy(self, index=None):
|
||||
"""
|
||||
|
|
Loading…
Reference in New Issue