UI data stored in .caproj instead in .uistate file issue

Discussion and feedback on Construct 2

Post » Mon May 26, 2014 9:00 pm

Not sure whether to post this in bugs section, because it's not a bug per se.

I use git for development and sometimes when i merge two branches of my project, and in one branch a folder is open (expanded) in one is closed, i get conflicts because of the following lines in a .caproj files:

branch A):
Code: Select all
<layout-folder expanded="1">


branch B) :
Code: Select all
<layout-folder expanded="0">


Shouldn't this data be stored in a .uistate file, which i can choose to ignore in .gitignore?

This isn't a git problem, and there are workarounds, but i was just wondering isn't this kind of data exactly why a .uistate file exists. Good explanation is right in the .uistate file:

Code: Select all
 <!--This is a UI state file - its content describes the user interface settings when the project was last open.
It is entirely optional and the project will load without it.  If you are placing the project under source control,
you probably do not want to add any .uistate.xml files to the repository.-->


I believe that storing UI data in .caproj file is bad design for any source control and would like to see it go away to the .uistate file where it belongs.

@Ashley

Is it possible to move this info in .uistate file? Should i file a bug report?


p.s. I've uploaded a zip containing two empty projects, one with layout folder expanded and other closed if it makes easier to notice the difference in the .caproj file.
You do not have the required permissions to view the files attached to this post.
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Tue May 27, 2014 3:30 pm

Same thing goes to the is an event group collapsed or not:

Code: Select all
   <event-group collapsed="1" description="" sid="6137878066224269" title="Group">
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Mon Jan 05, 2015 4:38 pm

@JohnnySheffield +1 I'm also having merge issues sometimes because of this, and I'd like it to be stored in the uistate.xml file

.gitignore sample for Construct2: (a bit off topic)
Code: Select all
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Construct2 generated files #
##############################
*.uistate.xml
*.backup*
*.autosave
B
6
S
2
Posts: 24
Reputation: 737


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 10 guests