mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-06 05:05:42 +13:00
Merge pull request #2887 from L1Q/master
Make editor check for fullscreen on startup only
This commit is contained in:
commit
8eaae20da1
2 changed files with 3 additions and 2 deletions
|
@ -49,12 +49,12 @@ public sealed class RegionCaptureForm : Form
|
|||
public int FPS { get; private set; }
|
||||
public int MonitorIndex { get; set; }
|
||||
public string ImageFilePath { get; set; }
|
||||
public bool IsFullscreen { get; private set; }
|
||||
|
||||
public RegionCaptureMode Mode { get; private set; }
|
||||
|
||||
public bool IsEditorMode => Mode == RegionCaptureMode.Editor || Mode == RegionCaptureMode.TaskEditor;
|
||||
public bool IsAnnotationMode => Mode == RegionCaptureMode.Annotation || IsEditorMode;
|
||||
public bool IsFullscreen => !IsEditorMode || Config.EditorModeFullscreen;
|
||||
public bool IsAnnotated => ShapeManager != null && ShapeManager.IsAnnotated;
|
||||
|
||||
public Point CurrentPosition { get; private set; }
|
||||
|
@ -107,6 +107,7 @@ public RegionCaptureForm(RegionCaptureMode mode, RegionCaptureOptions options)
|
|||
{
|
||||
Mode = mode;
|
||||
Config = options;
|
||||
IsFullscreen = !IsEditorMode || Config.EditorModeFullscreen;
|
||||
|
||||
ScreenRectangle0Based = CaptureHelpers.GetScreenBounds0Based();
|
||||
ImageRectangle = ScreenRectangle0Based;
|
||||
|
|
|
@ -735,7 +735,7 @@ internal void CreateToolbar()
|
|||
tsmiEditorModeRememberWindowState.Click += (sender, e) => Config.EditorModeRememberWindowState = tsmiEditorModeRememberWindowState.Checked;
|
||||
tsddbOptions.DropDownItems.Add(tsmiEditorModeRememberWindowState);
|
||||
|
||||
ToolStripMenuItem tsmiEditorModeFullscreen = new ToolStripMenuItem("Fullscreen editor mode");
|
||||
ToolStripMenuItem tsmiEditorModeFullscreen = new ToolStripMenuItem("Start editor fullscreen");
|
||||
tsmiEditorModeFullscreen.Checked = Config.EditorModeFullscreen;
|
||||
tsmiEditorModeFullscreen.CheckOnClick = true;
|
||||
tsmiEditorModeFullscreen.Click += (sender, e) => Config.EditorModeFullscreen = tsmiEditorModeFullscreen.Checked;
|
||||
|
|
Loading…
Reference in a new issue