Minor improvements
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
namespace FileTime.App.Core.Configuration;
|
||||
|
||||
public class TabPersistenceSettings
|
||||
{
|
||||
public bool LoadState { get; set; } = true;
|
||||
public bool SaveState { get; set; } = true;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using FileTime.App.Core.Models;
|
||||
using FileTime.Core.Models;
|
||||
|
||||
namespace FileTime.App.Core.UserCommand;
|
||||
|
||||
@@ -10,6 +11,8 @@ public sealed class SortItemsCommand : IIdentifiableUserCommand
|
||||
public const string OrderByCreatedAtDescCommandName = "order_by_created_at_desc";
|
||||
public const string OrderByModifiedAtCommandName = "order_by_modified_at";
|
||||
public const string OrderByModifiedAtDescCommandName = "order_by_modified_at_desc";
|
||||
public const string OrderBySizeCommandName = "order_by_size";
|
||||
public const string OrderBySizeDescCommandName = "order_by_size_desc";
|
||||
|
||||
public static readonly SortItemsCommand OrderByNameCommand =
|
||||
new(OrderByNameCommandName, ItemOrdering.Name, "Order by name");
|
||||
@@ -28,6 +31,12 @@ public sealed class SortItemsCommand : IIdentifiableUserCommand
|
||||
|
||||
public static readonly SortItemsCommand OrderByLastModifiedDescCommand =
|
||||
new(OrderByModifiedAtDescCommandName, ItemOrdering.LastModifyDateDesc, "Order by last modified (descending)");
|
||||
|
||||
public static readonly SortItemsCommand OrderBySizeCommand =
|
||||
new(OrderBySizeCommandName, ItemOrdering.Size, "Order by size");
|
||||
|
||||
public static readonly SortItemsCommand OrderBySizeDescCommand =
|
||||
new(OrderBySizeDescCommandName, ItemOrdering.SizeDesc, "Order by size (descending)");
|
||||
|
||||
private SortItemsCommand(string userCommandId, ItemOrdering ordering, string title)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user