feature<Window>: remember window state

This commit is contained in:
leo 2022-01-04 14:52:13 +08:00
parent 9f58e0c715
commit f04c01b878
3 changed files with 12 additions and 3 deletions

View file

@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.IO;
using System.Text.Json;
using System.Text.Json.Serialization;
using System.Windows;
namespace SourceGit.Models {
@ -125,6 +126,11 @@ namespace SourceGit.Models {
/// </summary>
public double Height { get; set; } = 600;
/// <summary>
/// 保存上次关闭时是否最大化中
/// </summary>
public WindowState State { get; set; } = WindowState.Normal;
/// <summary>
/// 将提交信息面板与提交记录左右排布
/// </summary>