Make editor check for fullscreen on startup only

This commit is contained in:
L1Q 2017-10-28 16:56:55 +03:00
parent 968958a432
commit acb130d072
2 changed files with 3 additions and 2 deletions

View file

@ -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;

View file

@ -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;