mirror of
https://github.com/Microsoft/calculator.git
synced 2025-07-16 02:02:51 -07:00
Use TryResizeView to resize calc on first launch
This commit is contained in:
parent
296ccc867e
commit
531a8a1b7b
1 changed files with 2 additions and 2 deletions
|
@ -255,9 +255,9 @@ void App::OnAppLaunch(IActivatedEventArgs^ args, String^ argument)
|
|||
// For very first launch, set the size of the calc as size of the default standard mode
|
||||
if (!localSettings->Values->HasKey(L"VeryFirstLaunch"))
|
||||
{
|
||||
appView->PreferredLaunchViewSize = minWindowSize;
|
||||
appView->PreferredLaunchWindowingMode = ApplicationViewWindowingMode::PreferredLaunchViewSize;
|
||||
localSettings->Values->Insert(ref new String(L"VeryFirstLaunch"), false);
|
||||
appView->SetPreferredMinSize(minWindowSize);
|
||||
appView->TryResizeView(minWindowSize);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue