1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00

Update link state and save project when a link is suspended or filters are added/removed (without node properties set).

This commit is contained in:
grossmj 2018-01-30 17:39:33 +07:00
parent 4f2a50894b
commit 008baad86a

View File

@ -171,12 +171,16 @@ class Link:
self._filters = new_filters
if self._created:
yield from self.update()
self._project.controller.notification.emit("link.updated", self.__json__())
self._project.dump()
@asyncio.coroutine
def update_suspend(self, value):
if value != self._suspend:
self._suspend = value
yield from self.update()
self._project.controller.notification.emit("link.updated", self.__json__())
self._project.dump()
@property
def created(self):