mirror of
https://github.com/ShareX/ShareX.git
synced 2024-07-04 22:21:23 +12:00
Reset annotation options on first upgrade
This commit is contained in:
parent
3252d5dddb
commit
5f9d7872b2
|
@ -25,6 +25,7 @@
|
|||
|
||||
using ShareX.HelpersLib;
|
||||
using ShareX.Properties;
|
||||
using ShareX.ScreenCaptureLib;
|
||||
using ShareX.UploadersLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
|
@ -70,7 +71,7 @@ public static string Title
|
|||
|
||||
public static string TitleLong => $"{Title} ({Build})";
|
||||
|
||||
public static bool Beta { get; } = false;
|
||||
public static bool Beta { get; } = true;
|
||||
public static bool MultiInstance { get; private set; }
|
||||
public static bool Portable { get; private set; }
|
||||
public static bool PortableApps { get; private set; }
|
||||
|
@ -425,6 +426,15 @@ public static void LoadProgramSettings()
|
|||
{
|
||||
Settings = ApplicationConfig.Load(ApplicationConfigFilePath);
|
||||
DefaultTaskSettings = Settings.DefaultTaskSettings;
|
||||
|
||||
// TODO: Remove this next version
|
||||
if (Settings.IsUpgrade)
|
||||
{
|
||||
RegionCaptureOptions regionCaptureOptions = DefaultTaskSettings.CaptureSettings.SurfaceOptions;
|
||||
regionCaptureOptions.AnnotationOptions = new AnnotationOptions();
|
||||
regionCaptureOptions.LastRegionTool = ShapeType.RegionRectangle;
|
||||
regionCaptureOptions.LastAnnotationTool = ShapeType.DrawingRectangle;
|
||||
}
|
||||
}
|
||||
|
||||
public static void LoadUploadersConfig()
|
||||
|
|
|
@ -11,5 +11,5 @@
|
|||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
[assembly: Guid("82E6AC09-0FEF-4390-AD9F-0DD3F5561EFC")]
|
||||
[assembly: AssemblyVersion("11.4.1")]
|
||||
[assembly: AssemblyFileVersion("11.4.1")]
|
||||
[assembly: AssemblyVersion("11.5.0")]
|
||||
[assembly: AssemblyFileVersion("11.5.0")]
|
Loading…
Reference in a new issue