Icon, Tab state persistence
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace FileTime.Avalonia.Models.Persistence
|
||||
{
|
||||
public class PersistenceRoot
|
||||
{
|
||||
public TabStates? TabStates { get; set; }
|
||||
}
|
||||
}
|
||||
18
src/GuiApp/FileTime.Avalonia/Models/Persistence/TabState.cs
Normal file
18
src/GuiApp/FileTime.Avalonia/Models/Persistence/TabState.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using FileTime.Avalonia.Application;
|
||||
|
||||
namespace FileTime.Avalonia.Models.Persistence
|
||||
{
|
||||
public class TabState
|
||||
{
|
||||
public string? Path { get; set; }
|
||||
public int Number { get; set; }
|
||||
|
||||
public TabState() { }
|
||||
|
||||
public TabState(TabContainer tab)
|
||||
{
|
||||
Path = tab.CurrentLocation.Item.FullName;
|
||||
Number = tab.TabNumber;
|
||||
}
|
||||
}
|
||||
}
|
||||
10
src/GuiApp/FileTime.Avalonia/Models/Persistence/TabStates.cs
Normal file
10
src/GuiApp/FileTime.Avalonia/Models/Persistence/TabStates.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace FileTime.Avalonia.Models.Persistence
|
||||
{
|
||||
public class TabStates
|
||||
{
|
||||
public List<TabState>? Tabs { get; set; }
|
||||
public int? ActiveTabNumber { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user