mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-14 14:24:10 +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)
|
||||
{
|
||||
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();
|
||||
data.GetString("LastPlatform", platformName);
|
||||
if (!platformName.IsEmpty)
|
||||
{
|
||||
Workspace.Config config;
|
||||
mWorkspace.mConfigs.TryGetValue(mConfigName, out config);
|
||||
if (config != null)
|
||||
{
|
||||
if (Utils.Contains(config.mPlatforms.Keys, platformName))
|
||||
mPlatformName.Set(platformName);
|
||||
}
|
||||
mPlatformName.Set(platformName);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue