mirror of https://github.com/buggins/dlangide.git
Merge branch 'master' of github.com:buggins/dlangide
This commit is contained in:
commit
a94fbd7ad1
|
@ -277,6 +277,7 @@ class Workspace : WorkspaceItem {
|
|||
Log.e("empty workspace name");
|
||||
return false;
|
||||
}
|
||||
auto originalStartupProjectName = _settings.startupProjectName;
|
||||
Setting projects = _workspaceFile.objectByPath("projects", true);
|
||||
foreach(string key, Setting value; projects) {
|
||||
string path = value.str;
|
||||
|
@ -287,6 +288,7 @@ class Workspace : WorkspaceItem {
|
|||
_projects ~= project;
|
||||
project.load();
|
||||
}
|
||||
_settings.startupProjectName = originalStartupProjectName;
|
||||
fillStartupProject();
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -22,8 +22,9 @@ class WorkspaceSettings : SettingsFile {
|
|||
return _startupProjectName;
|
||||
}
|
||||
@property void startupProjectName(string s) {
|
||||
if (s.equal(_startupProjectName)) {
|
||||
if (!s.equal(_startupProjectName)) {
|
||||
_startupProjectName = s;
|
||||
_setting["startupProject"] = s;
|
||||
save();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue