feat(rcf): append hosting back

This commit is contained in:
Swann
2019-04-08 17:01:02 +02:00
parent c137971606
commit 333f0980bf
5 changed files with 39 additions and 49 deletions

View File

@ -55,17 +55,17 @@ class SessionSettingsPanel(bpy.types.Panel):
row = layout.row()
row.operator("session.join", text="CONNECT")
# else:
else:
# if net_operators.client.status is net_components.RCFStatus.CONNECTED:
# row.label(text="Net frequency:")
# row.prop(net_settings, "update_frequency", text="")
# row = layout.row()
# row.operator("session.stop", icon='QUIT', text="Exit")
# elif net_operators.client.status is net_components.RCFStatus.CONNECTING:
# row.label(text="connecting...")
# row = layout.row()
# row.operator("session.stop", icon='QUIT', text="CANCEL")
if net_operators.client.agent.is_alive():
row.label(text="Net frequency:")
row.prop(net_settings, "update_frequency", text="")
row = layout.row()
row.operator("session.stop", icon='QUIT', text="Exit")
# elif net_operators.client.status is net_components.RCFStatus.CONNECTING:
# row.label(text="connecting...")
# row = layout.row()
# row.operator("session.stop", icon='QUIT', text="CANCEL")
row = layout.row()