Closed Yoplitein closed 8 years ago
The condition in your if
statement will never be true, as even an empty window has a folders
attribute on project_data
.
I don't want to sound dismissive, but is your computer really slow or something? That's the only way an existing window's project data could be overwritten. If you look at the surrounding code, you'll see the steps are:
new_window
command completes.)I'll change this code so that it inserts the path instead of stomping over all project data. That should give you the desired behavior. Sorry for the frustration caused.
Empty windows do in fact have no project data, at least under ST3 on Windows.
Project data is only overwritten when joining an existing workspace, with the workspace's project open. Otherwise it opens a new window and creates a new project in memory.
OK, master should be fixed. I'm going to test this a little more before tagging a release. Please let me know if that fixes your problem.
Yep, that fixes it. Thanks!
OK. I've tagged a new release: 3.5.2. Thanks for reporting this.
This fixes the (really ?%!#$%! annoying) behaviour of overwriting project data upon joining a workspace.