mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
remove open backup folder link
https://anki.tenderapp.com/discussions/ankidesktop/35084-crash-while-trying-to-revert-to-a-backup
This commit is contained in:
parent
79a4f76422
commit
e5194ad208
2 changed files with 2 additions and 6 deletions
|
@ -5,7 +5,7 @@
|
|||
import datetime, time
|
||||
from aqt.qt import *
|
||||
import anki.lang
|
||||
from aqt.utils import openFolder, openHelp, showInfo, askUser
|
||||
from aqt.utils import openHelp, showInfo, askUser
|
||||
import aqt
|
||||
from anki.lang import _
|
||||
|
||||
|
@ -209,10 +209,6 @@ Not currently enabled; click the sync button in the main window to enable."""))
|
|||
|
||||
def setupBackup(self):
|
||||
self.form.numBackups.setValue(self.prof['numBackups'])
|
||||
self.form.openBackupFolder.linkActivated.connect(self.onOpenBackup)
|
||||
|
||||
def onOpenBackup(self):
|
||||
openFolder(self.mw.pm.backupFolder())
|
||||
|
||||
def updateBackup(self):
|
||||
self.prof['numBackups'] = self.form.numBackups.value()
|
||||
|
|
|
@ -426,7 +426,7 @@
|
|||
<item>
|
||||
<widget class="QLabel" name="openBackupFolder">
|
||||
<property name="text">
|
||||
<string><a href="backups">Open backup folder</a></string>
|
||||
<string>You can restore backups via File>Switch Profile.</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
Loading…
Reference in a new issue