Commit f73f012b authored by Lucas Sulzbach's avatar Lucas Sulzbach

SCRUM#591: Hide new teacher feature from panel in particular version

parent 2c3b6628
Pipeline #19030 failed with stages
in 9 seconds
le-control-panel (1.0.9) unstable; urgency=medium
* Hide new teacher feature from panel in particular version (Closes: #591)
-- Lucas Sulzbach <lesuporte@c3sl.ufpr.br> Fri, 11 Jan 2019 10:53:06 -0200
le-control-panel (1.0.8) unstable; urgency=medium
* Disable autoupdate controls when disabled and organize object IDs (Closes: #582)
......
......@@ -754,10 +754,6 @@ if __name__ == "__main__":
switchShield = builder.get_object("familyShield")
newUserButton = builder.get_object("buttonNewUser")
newUserDialog = builder.get_object("dialogNewUser")
newUserButton.connect("clicked", onNewUserButtonPressed, newUserDialog)
switchUpdate = builder.get_object("switchAutoUpdate")
switchEpoptes = builder.get_object("switchEpoptes")
......@@ -774,6 +770,22 @@ if __name__ == "__main__":
window = builder.get_object("mainWindow")
window.show_all()
try:
with open("/etc/default/version", "r") as version:
if version.read() == "Particular\n":
frameNewUser = builder.get_object("frameNewUser")
separatorNewUser = builder.get_object("separatorNewUser")
frameNewUser.hide()
separatorNewUser.hide()
else:
newUserButton = builder.get_object("buttonNewUser")
newUserDialog = builder.get_object("dialogNewUser")
newUserButton.connect("clicked", onNewUserButtonPressed,
newUserDialog)
except Exception as e:
print(e)
exit(1)
configureMultiterminal()
getUpdateTime()
......
......@@ -919,7 +919,7 @@
</packing>
</child>
<child>
<object class="GtkSeparator">
<object class="GtkSeparator" id="separatorNewUser">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_top">5</property>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment