diff --git a/ShareX/ApplicationConfig.cs b/ShareX/ApplicationConfig.cs index b90e3f911..4cc479ed5 100644 --- a/ShareX/ApplicationConfig.cs +++ b/ShareX/ApplicationConfig.cs @@ -120,7 +120,7 @@ public ApplicationConfig() [Category("Application"), DefaultValue(false), Description("Calculate and show file sizes in binary units (KiB, MiB etc.)")] public bool BinaryUnits { get; set; } - [Category("Application"), DefaultValue(false), Description("Show most recent task first.")] + [Category("Application"), DefaultValue(false), Description("Show most recent task first in main window.")] public bool ShowMostRecentTaskFirst { get; set; } [Category("Application"), DefaultValue(false), Description("By default copying \"Bitmap\" to clipboard. Alternative method copying \"PNG and DIB\" to clipboard.")] @@ -146,12 +146,6 @@ public ApplicationConfig() [Category("Application"), DefaultValue(true), Description("Show tips in main window list when list is empty.")] public bool ShowMainWindowTip { get; set; } - [Category("Application"), DefaultValue(true), Description("Saves recent links so when ShareX reopened it will remember them.")] - public bool RecentLinksRemember { get; set; } - - [Category("Application"), DefaultValue(10), Description("In recent links tray menu max how many links to show.")] - public int RecentLinksMaxCount { get; set; } - [Category("Application"), DefaultValue(100), Description("Large file size defined in MiB or MB. ShareX will warn before uploading large files. 0 disables this feature.")] public int LargeFileSizeWarning { get; set; } @@ -188,6 +182,15 @@ public ApplicationConfig() [Category("Drag and drop window"), DefaultValue(255), Description("When you drag file to drop window then opacity will change to this.")] public int DropHoverOpacity { get; set; } + [Category("Recent links"), DefaultValue(true), Description("Saves recent links so when ShareX reopened it will remember them.")] + public bool RecentLinksRemember { get; set; } + + [Category("Recent links"), DefaultValue(10), Description("In recent links tray menu max how many links to show.")] + public int RecentLinksMaxCount { get; set; } + + [Category("Recent links"), DefaultValue(false), Description("Show most recent link first in recent links tray menu.")] + public bool ShowMostRecentLinkFirst { get; set; } + #endregion Advanced #endregion Settings Form diff --git a/ShareX/RecentManager.cs b/ShareX/RecentManager.cs index f2c96c105..578615871 100644 --- a/ShareX/RecentManager.cs +++ b/ShareX/RecentManager.cs @@ -133,7 +133,14 @@ private void UpdateRecentMenu() URLHelpers.OpenURL(link); } }; - tsmi.DropDownItems.Add(tsmiLink); + if (Program.Settings.ShowMostRecentLinkFirst) + { + tsmi.DropDownItems.Insert(2, tsmiLink); + } + else + { + tsmi.DropDownItems.Add(tsmiLink); + } } } }