jump list fix

This commit is contained in:
rmbgame
2021-06-05 19:47:51 +08:00
parent 428c650d4a
commit 8d97cd63ca
2 changed files with 8 additions and 2 deletions
@@ -23,7 +23,7 @@ namespace System.Application.UI.Views
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
sp.Margin = new Avalonia.Thickness(0, 0, 140, 0);
else
sp.Margin = new Avalonia.Thickness(0, 12, 10, 0);
sp.Margin = new Avalonia.Thickness(0, 6, 10, 0);
}
}
@@ -17,7 +17,7 @@ namespace System.Application.UI
var jumpList1 = new JumpList
{
ShowRecentCategory = true,
ShowFrequentCategory = true,
ShowFrequentCategory = false,
};
//jumpList1.JumpItemsRejected += JumpList1_JumpItemsRejected;
//jumpList1.JumpItemsRemovedByUser += JumpList1_JumpItemsRemovedByUser;
@@ -39,6 +39,12 @@ namespace System.Application.UI
// WorkingDirectory = @"C:\Users\Public\Documents",
// Arguments = "readme.txt",
//});
//JumpList jumpList1 = JumpList.GetJumpList(AvaloniaApplication.Current);
//if (jumpList1 != null)
//{
// jumpList1.JumpItems.Clear();
// jumpList1.Apply();
//}
JumpList.SetJumpList(AvaloniaApplication.Current, jumpList1);
}