In keySave() there is this odd code:
Code: Select all
def keySave(self):
...
if candidates: # prl - the list of mountpoints with whitelisted filesystem types is non-empty
...
else:
if int(config.timeshift.startdelay.value) > 0:
self.session.open(
MessageBox,
_("The directory %s is not a EXT2, EXT3, EXT4 or NFS partition.\nMake sure you select a valid partition type.") % config.usage.timeshift_path.value,
type=MessageBox.TYPE_ERROR
)
else:
config.timeshift.startdelay.value = "0"
self.saveAll()
self.close()
Surely it should be:
Code: Select all
def keySave(self):
...
if candidates: # prl - the list of mountpoints with whitelisted filesystem types is non-empty
...
else:
if int(config.timeshift.startdelay.value) > 0:
self.session.open(
MessageBox,
_("The directory %s is not a EXT2, EXT3, EXT4 or NFS partition.\nMake sure you select a valid partition type.") % config.usage.timeshift_path.value,
type=MessageBox.TYPE_ERROR
)
config.timeshift.startdelay.value = "0"
self.saveAll()
self.close()