Files @ d16a2d816aa5
Branch filter:

Location: ATITD-Tools/Desert-Paint-Codex/Models/ScreenMetrics.cs - annotation

Jason Maltzen
Don't open the recipe generator log file on view creation - only open it if configured when starting recipe generation. Fixes a crash when importing reaction data / profile data.
using Avalonia;

namespace DesertPaintCodex.Models
{
    public class ScreenMetrics
    {
        public PixelRect Bounds { get; set; }
        public bool IsPrimary { get; set; }

        public string PositionToStr => $"{Bounds.X}, {Bounds.Y}";
        public string SizeToStr => $"{Bounds.Width}x{Bounds.Height}";

        public ScreenMetrics(PixelRect bounds, bool isPrimary)
        {
            Bounds = bounds;
            IsPrimary = isPrimary;
        }
    }
}