Add a modification uuid to settings returned by the server

Ref #1949
This commit is contained in:
Julien Duponchelle committed 2017-03-21 13:35:02 +01:00
1 parent 73c31b4b87
commit cc6f4c0510
3 files changed
+6 -2

No files matched your search

+2
View File
@@ -18,6 +18,7 @@
import os
import sys
import json
import uuid
import socket
import asyncio
import aiohttp
@@ -253,6 +254,7 @@ class Controller:
@settings.setter
def settings(self, val):
self._settings = val
self._settings["modification_uuid"] = str(uuid.uuid4()) # We add a modification id to the settings it's help the gui to detect changes
self.save()
self.notification.emit("settings.updated", val)