fix: external depencies removed during undo
This commit is contained in:
parent
209062af4f
commit
505f3ab770
@ -68,12 +68,15 @@ class BlFile(ReplicatedDatablock):
|
||||
self.preferences = utils.get_preferences()
|
||||
|
||||
def resolve(self, construct = True):
|
||||
if self.data:
|
||||
self.instance = Path(get_filepath(self.data['name']))
|
||||
self.instance = Path(get_filepath(self.data['name']))
|
||||
|
||||
file_exists = self.instance.exists()
|
||||
if not file_exists:
|
||||
logging.debug("File don't exist, loading it.")
|
||||
self._load(self.data, self.instance)
|
||||
|
||||
return file_exists
|
||||
|
||||
if not self.instance.exists():
|
||||
logging.debug("File don't exist, loading it.")
|
||||
self._load(self.data, self.instance)
|
||||
|
||||
def push(self, socket, identity=None, check_data=False):
|
||||
super().push(socket, identity=None, check_data=False)
|
||||
|
Loading…
x
Reference in New Issue
Block a user