Tidy up preference file changes

This commit is contained in:
Chris Titus
2025-04-16 08:56:22 -05:00
parent 20769f66a1
commit 963c0a17aa
2 changed files with 7 additions and 9 deletions

View File

@ -219,7 +219,7 @@ function Update-AppTileProperties {
$sync.Form.Resources.AppTileMargins = [Windows.Thickness]2
$sync.Form.Resources.AppTileBorderThickness = [Windows.Thickness]0
}
else {
else {
# On first load, set the AppTileWidth to NaN because the Window dosnt exist yet and there is no ActuaWidth
if ($sync.ItemsControl.ActualWidth -gt 0) {
$sync.Form.Resources.AppTileWidth = $sync.ItemsControl.ActualWidth -20}