mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 11:18:11 +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:
parent
4f2a50894b
commit
008baad86a
@ -171,12 +171,16 @@ class Link:
|
|||||||
self._filters = new_filters
|
self._filters = new_filters
|
||||||
if self._created:
|
if self._created:
|
||||||
yield from self.update()
|
yield from self.update()
|
||||||
|
self._project.controller.notification.emit("link.updated", self.__json__())
|
||||||
|
self._project.dump()
|
||||||
|
|
||||||
@asyncio.coroutine
|
@asyncio.coroutine
|
||||||
def update_suspend(self, value):
|
def update_suspend(self, value):
|
||||||
if value != self._suspend:
|
if value != self._suspend:
|
||||||
self._suspend = value
|
self._suspend = value
|
||||||
yield from self.update()
|
yield from self.update()
|
||||||
|
self._project.controller.notification.emit("link.updated", self.__json__())
|
||||||
|
self._project.dump()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def created(self):
|
def created(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user