Revise IsGuestProfile property, revert LastSessionUsername changes

This commit is contained in:
John Lewin 2016-10-21 16:09:44 -07:00
parent 3c18f10e55
commit 67b151aa2c
2 changed files with 3 additions and 3 deletions

View file

@ -98,7 +98,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
}
[JsonIgnore]
public bool IsGuestProfile { get; private set; } = false;
public bool IsGuestProfile => this.UserName == "guest";
public static void Reload()
{
@ -164,7 +164,7 @@ namespace MatterHackers.MatterControl.SlicerConfiguration
internal static ProfileManager LoadGuestProfiles()
{
return new ProfileManager("guest") { IsGuestProfile = true };
return new ProfileManager("guest");
}
internal static void SettingsChanged(object sender, EventArgs e)