Commit 3e0f9a75 authored by AUTOMATIC's avatar AUTOMATIC
Browse files

fix issue with switching back to checkpoint that had its checksum calculated...

fix issue with switching back to checkpoint that had its checksum calculated during runtime mentioned in #7506
parent 40e51fd6
Loading
Loading
Loading
Loading
+3 −2
Original line number Original line Diff line number Diff line
@@ -65,10 +65,11 @@ class CheckpointInfo:
        self.shorthash = self.sha256[0:10]
        self.shorthash = self.sha256[0:10]


        if self.shorthash not in self.ids:
        if self.shorthash not in self.ids:
            self.ids += [self.shorthash, self.sha256]
            self.ids += [self.shorthash, self.sha256, f'{self.name} [{self.shorthash}]']
            self.register()


        checkpoints_list.pop(self.title)
        self.title = f'{self.name} [{self.shorthash}]'
        self.title = f'{self.name} [{self.shorthash}]'
        self.register()


        return self.shorthash
        return self.shorthash