Icon, Tab state persistence
This commit is contained in:
@@ -6,6 +6,7 @@ using Avalonia.Markup.Xaml;
|
||||
using FileTime.Avalonia.Misc;
|
||||
using FileTime.Avalonia.Models;
|
||||
using FileTime.Avalonia.ViewModels;
|
||||
using System;
|
||||
using System.Linq;
|
||||
|
||||
namespace FileTime.Avalonia.Views
|
||||
@@ -107,5 +108,10 @@ namespace FileTime.Avalonia.Views
|
||||
e.Handled = true;
|
||||
}
|
||||
}
|
||||
|
||||
private void OnWindowClosed(object sender, EventArgs e)
|
||||
{
|
||||
ViewModel?.StatePersistence.SaveStatesAsync().Wait();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user