mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 06:44: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
|
@ -2795,6 +2795,8 @@ namespace IDE
|
|||
}
|
||||
|
||||
bool LoadWorkspaceUserData(StructuredData data)
|
||||
{
|
||||
//
|
||||
{
|
||||
String configName = scope String();
|
||||
data.GetString("LastConfig", configName);
|
||||
|
@ -2803,21 +2805,13 @@ namespace IDE
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
using (data.Open("MainWindow"))
|
||||
DeserializeWindow(data, mMainWindow);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue