Set SaveSettingsAfterTaskCompleted setting false by default

This commit is contained in:
Jaex 2018-10-16 23:56:25 +03:00
parent 88d3670f91
commit a2e8576641
2 changed files with 10 additions and 15 deletions

View file

@ -181,7 +181,7 @@ public ApplicationConfig()
[Category("Application"), DefaultValue(false), Description("Show version and build info in tray text so if you are running more than one ShareX build you can differentiate them in tray bar.")]
public bool TrayTextMoreInfo { get; set; }
[Category("Application"), DefaultValue(true), Description("Save settings after task completed but only if there is no other active tasks. This setting will be handy for situations where setting save fails when Windows shutdown and not let ShareX to save in time.")]
[Category("Application"), DefaultValue(false), Description("Save settings after task completed but only if there is no other active tasks.")]
public bool SaveSettingsAfterTaskCompleted { get; set; }
[Category("Application"), DefaultValue(false), Description("In main window when task is completed automatically select it.")]

View file

@ -969,19 +969,6 @@ private void UpdateMainWindowLayout()
Refresh();
}
private void SaveTaskListViewColumnWidths()
{
if (IsReady)
{
Program.Settings.TaskListViewColumnWidths = new List<int>();
for (int i = 0; i < lvUploads.Columns.Count - 1; i++)
{
Program.Settings.TaskListViewColumnWidths.Add(lvUploads.Columns[i].Width);
}
}
}
public void UpdateToggleHotkeyButton()
{
if (Program.Settings.DisableHotkeys)
@ -1310,7 +1297,15 @@ private void cmsTaskInfo_PreviewKeyDown(object sender, PreviewKeyDownEventArgs e
private void lvUploads_ColumnWidthChanged(object sender, ColumnWidthChangedEventArgs e)
{
SaveTaskListViewColumnWidths();
if (IsReady)
{
Program.Settings.TaskListViewColumnWidths = new List<int>();
for (int i = 0; i < lvUploads.Columns.Count - 1; i++)
{
Program.Settings.TaskListViewColumnWidths.Add(lvUploads.Columns[i].Width);
}
}
}
private void lvUploads_ItemDrag(object sender, ItemDragEventArgs e)