Skip to content

Commit d078bd7

Browse files
committed
2.4.1.5 - Selected calendar day saved.
1 parent 872e2d1 commit d078bd7

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

changelog.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Auto Screen Capture by Gavin Kendall
22

33

4-
2.4.1.5 List of screenshots show information based on Filter selection. Filter selection and screenshots list index saved.
4+
2.4.1.5 List of screenshots show information based on Filter selection. Filter selection, selected calendar day, and screenshots list index saved.
55
2.4.1.4 Removed width check on SelectBitmap in FormRegionSelectWithMouse.
66
2.4.1.3 Small corrections made to Region Select methods after mouse selection has completed. (February 9, 2021)
77
2.4.1.2 Reverted changes that were implemented in 2.4.1.1 essentially making this version the same as 2.4.1.0

interface/main/FormMain-Screenshots.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ private void timerPerformMaintenance_Tick(object sender, EventArgs e)
5252
/// <param name="e"></param>
5353
private void DateSelected_monthCalendar(object sender, DateRangeEventArgs e)
5454
{
55+
if (!runDateSearchThread.IsBusy)
56+
{
57+
_config.Settings.User.SetValueByKey("SelectedCalendarDay", monthCalendar.SelectionStart.ToString());
58+
}
59+
5560
ShowScreenshots();
5661
}
5762

interface/main/FormMain-Settings.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,9 @@ private void LoadSettings()
315315
// Set the filter type to be the last selected index that was saved (and if no setting is found just set it to selected index 0).
316316
// IMPORTANT: Do not attempt to set the same index for Filter Value here as that control is populated based on the selected index of Filter Type.
317317
comboBoxFilterType.SelectedIndex = Convert.ToInt32(_config.Settings.User.GetByKey("FilterType", 0).Value);
318-
318+
319+
monthCalendar.SelectionStart = Convert.ToDateTime(_config.Settings.User.GetByKey("SelectedCalendarDay", DateTime.Now).Value);
320+
319321
_log.WriteDebugMessage("Settings loaded");
320322
}
321323
catch (Exception ex)

0 commit comments

Comments
 (0)