mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 23:04:09 +02:00
Fixed LastPlatform issue when platform options were default
This commit is contained in:
parent
55a8c12a7c
commit
24dd60933b
1 changed files with 8 additions and 14 deletions
|
@ -2796,26 +2796,20 @@ namespace IDE
|
||||||
|
|
||||||
bool LoadWorkspaceUserData(StructuredData data)
|
bool LoadWorkspaceUserData(StructuredData data)
|
||||||
{
|
{
|
||||||
String configName = scope String();
|
|
||||||
data.GetString("LastConfig", configName);
|
|
||||||
if (!configName.IsEmpty)
|
|
||||||
{
|
|
||||||
mConfigName.Set(configName);
|
|
||||||
}
|
|
||||||
|
|
||||||
//
|
//
|
||||||
{
|
{
|
||||||
|
String configName = scope String();
|
||||||
|
data.GetString("LastConfig", configName);
|
||||||
|
if (!configName.IsEmpty)
|
||||||
|
{
|
||||||
|
mConfigName.Set(configName);
|
||||||
|
}
|
||||||
|
|
||||||
String platformName = scope String();
|
String platformName = scope String();
|
||||||
data.GetString("LastPlatform", platformName);
|
data.GetString("LastPlatform", platformName);
|
||||||
if (!platformName.IsEmpty)
|
if (!platformName.IsEmpty)
|
||||||
{
|
{
|
||||||
Workspace.Config config;
|
mPlatformName.Set(platformName);
|
||||||
mWorkspace.mConfigs.TryGetValue(mConfigName, out config);
|
|
||||||
if (config != null)
|
|
||||||
{
|
|
||||||
if (Utils.Contains(config.mPlatforms.Keys, platformName))
|
|
||||||
mPlatformName.Set(platformName);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue