mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Added ShowMostRecentLinkFirst setting
This commit is contained in:
parent
bc1eb99fdd
commit
b8418230b9
2 changed files with 18 additions and 8 deletions
|
@ -120,7 +120,7 @@ public ApplicationConfig()
|
||||||
[Category("Application"), DefaultValue(false), Description("Calculate and show file sizes in binary units (KiB, MiB etc.)")]
|
[Category("Application"), DefaultValue(false), Description("Calculate and show file sizes in binary units (KiB, MiB etc.)")]
|
||||||
public bool BinaryUnits { get; set; }
|
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; }
|
public bool ShowMostRecentTaskFirst { get; set; }
|
||||||
|
|
||||||
[Category("Application"), DefaultValue(false), Description("By default copying \"Bitmap\" to clipboard. Alternative method copying \"PNG and DIB\" to clipboard.")]
|
[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.")]
|
[Category("Application"), DefaultValue(true), Description("Show tips in main window list when list is empty.")]
|
||||||
public bool ShowMainWindowTip { get; set; }
|
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.")]
|
[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; }
|
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.")]
|
[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; }
|
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 Advanced
|
||||||
|
|
||||||
#endregion Settings Form
|
#endregion Settings Form
|
||||||
|
|
|
@ -133,7 +133,14 @@ private void UpdateRecentMenu()
|
||||||
URLHelpers.OpenURL(link);
|
URLHelpers.OpenURL(link);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
tsmi.DropDownItems.Add(tsmiLink);
|
if (Program.Settings.ShowMostRecentLinkFirst)
|
||||||
|
{
|
||||||
|
tsmi.DropDownItems.Insert(2, tsmiLink);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
tsmi.DropDownItems.Add(tsmiLink);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue