Rename sidebar_collapsed and code style

sidebar_collapsed is more consistent with other options and setting names we use. Better change it before the next release rolls out otherwise we'd have to do a version upgrade.
Also changed some code style things to be in line with our guidelines.

Contributes to issue CURA-4234.
This commit is contained in:
Ruben D 2017-12-30 19:35:46 +01:00
parent 147278e455
commit 689a18ee57
No known key found for this signature in database
GPG key ID: 6B42C9465E304A62
3 changed files with 10 additions and 6 deletions

View file

@ -316,7 +316,7 @@ class CuraApplication(QtApplication):
preferences.addPreference("cura/material_settings", "{}")
preferences.addPreference("view/invert_zoom", False)
preferences.addPreference("cura/sidebar_collapse", False)
preferences.addPreference("cura/sidebar_collapsed", False)
self._need_to_show_user_agreement = not Preferences.getInstance().getValue("general/accepted_user_agreement")