mirror of
https://github.com/ShareX/ShareX.git
synced 2024-06-28 03:00:22 +12:00
Added continue button to quick task menu
This commit is contained in:
parent
93a5d71e06
commit
d2a38db520
|
@ -1887,7 +1887,11 @@ private void AfterCapture(Image img, CaptureType captureType, TaskSettings taskS
|
|||
QuickTaskMenu quickTaskMenu = new QuickTaskMenu();
|
||||
quickTaskMenu.TaskInfoSelected += taskInfo =>
|
||||
{
|
||||
if (taskInfo.IsValid)
|
||||
if (taskInfo == null)
|
||||
{
|
||||
AfterCaptureRunTask(img, taskSettings);
|
||||
}
|
||||
else if (taskInfo.IsValid)
|
||||
{
|
||||
taskSettings.AfterCaptureJob = taskInfo.AfterCaptureTasks;
|
||||
taskSettings.AfterUploadJob = taskInfo.AfterUploadTasks;
|
||||
|
|
10
ShareX/Properties/Resources.Designer.cs
generated
10
ShareX/Properties/Resources.Designer.cs
generated
|
@ -551,6 +551,16 @@ public class Resources {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
public static System.Drawing.Bitmap control {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("control", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized resource of type System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
|
|
@ -817,4 +817,7 @@ Would you like to restart ShareX?</value>
|
|||
<data name="disk_black" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\disk-black.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="control" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\control.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
</root>
|
|
@ -74,7 +74,7 @@ public void ShowMenu()
|
|||
|
||||
// TODO: Translate
|
||||
ToolStripMenuItem tsmiEdit = new ToolStripMenuItem("Edit this menu...");
|
||||
tsmiEdit.Image = Resources.gear;
|
||||
tsmiEdit.Image = Resources.pencil;
|
||||
tsmiEdit.Click += (sender, e) =>
|
||||
{
|
||||
cms.Close();
|
||||
|
@ -84,6 +84,15 @@ public void ShowMenu()
|
|||
|
||||
cms.Items.Add(new ToolStripSeparator());
|
||||
|
||||
ToolStripMenuItem tsmiContinue = new ToolStripMenuItem("Continue");
|
||||
tsmiContinue.Image = Resources.control;
|
||||
tsmiContinue.Click += (sender, e) =>
|
||||
{
|
||||
cms.Close();
|
||||
OnTaskInfoSelected(null);
|
||||
};
|
||||
cms.Items.Add(tsmiContinue);
|
||||
|
||||
ToolStripMenuItem tsmiCancel = new ToolStripMenuItem("Cancel");
|
||||
tsmiCancel.Image = Resources.cross;
|
||||
tsmiCancel.Click += (sender, e) => cms.Close();
|
||||
|
|
BIN
ShareX/Resources/control.png
Normal file
BIN
ShareX/Resources/control.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 396 B |
|
@ -1268,6 +1268,7 @@
|
|||
<None Include="Resources\vn.png" />
|
||||
<None Include="Resources\layout-select.png" />
|
||||
<None Include="Resources\disk-black.png" />
|
||||
<None Include="Resources\control.png" />
|
||||
<Content Include="ShareX_Icon.ico" />
|
||||
<None Include="Resources\globe--pencil.png" />
|
||||
<None Include="Resources\camcorder--pencil.png" />
|
||||
|
|
Loading…
Reference in a new issue