fix: is_admin reset

feat: submodule bump
This commit is contained in:
Swann 2019-08-27 15:58:10 +02:00
parent 677ac45f13
commit cbfc2a7bf6
2 changed files with 3 additions and 1 deletions

@ -1 +1 @@
Subproject commit c90f4ce33d706005ac81cdd2d2f710167104df4d Subproject commit 3e8d5fda854c573261085c8f5ff706fed21ac34f

View File

@ -106,6 +106,7 @@ class SessionStartOperator(bpy.types.Operator):
) )
if client.state == 0: if client.state == 0:
settings.is_admin = False
self.report( self.report(
{'ERROR'}, {'ERROR'},
"A session is already hosted on this address") "A session is already hosted on this address")
@ -154,6 +155,7 @@ class SessionStopOperator(bpy.types.Operator):
def execute(self, context): def execute(self, context):
global client, delayables global client, delayables
settings = context.window_manager.session settings = context.window_manager.session
settings.is_admin = False
assert(client) assert(client)
client.remove(settings.user_uuid) client.remove(settings.user_uuid)