mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-22 22:23:29 -07:00
fixes: calculator doesn't remember its previous mode (#1580)
This commit is contained in:
parent
9017f074d3
commit
ae5d6c6f95
1 changed files with 4 additions and 6 deletions
|
@ -134,13 +134,11 @@ namespace CalculatorApp
|
|||
protected override void OnNavigatedTo(NavigationEventArgs e)
|
||||
{
|
||||
ViewMode initialMode = ViewMode.Standard;
|
||||
if (e.Parameter != null)
|
||||
|
||||
string stringParameter = (e.Parameter as string);
|
||||
if (!string.IsNullOrEmpty(stringParameter))
|
||||
{
|
||||
string stringParameter = (e.Parameter as string);
|
||||
if (!string.IsNullOrEmpty(stringParameter))
|
||||
{
|
||||
initialMode = (ViewMode)Convert.ToInt32(stringParameter);
|
||||
}
|
||||
initialMode = (ViewMode)Convert.ToInt32(stringParameter);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue