Skip to content

Commit

Permalink
Removing min size
Browse files Browse the repository at this point in the history
  • Loading branch information
dpaulino committed Dec 29, 2022
1 parent f2b7b7e commit b671679
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/AmbientSounds.Uwp/App.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,6 @@ private async Task ActivateAsync(bool prelaunched, IAppSettings? appsettings = n
});
}

SetMinSize();
Window.Current.Activate();
}

Expand Down Expand Up @@ -308,14 +307,6 @@ private void HandleProtocolLaunch(IProtocolActivatedEventArgs protocolArgs)
}
}

private void SetMinSize()
{
// Note: needs to be run sometime before Window.Current.Activate()
var scale = DisplayInformation.GetForCurrentView().RawPixelsPerViewPixel;
ApplicationView.GetForCurrentView().SetPreferredMinSize(
new Windows.Foundation.Size(260 * scale, 500 * scale));
}

private void OnSettingSet(object sender, string key)
{
if (key == UserSettingsConstants.Theme)
Expand Down

0 comments on commit b671679

Please sign in to comment.