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