Skip to content

Commit 58fd15a

Browse files
authored
Merge pull request #973 from Ordisoftware/dev
Dev
2 parents c55e6cf + 92a9bf5 commit 58fd15a

10 files changed

Lines changed: 24 additions & 17 deletions

File tree

‎.gitignore‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ Project/[Pp]ackages/
2727
*.userprefs
2828

2929
# Build results
30-
[Dd]ebug/
31-
[Dd]ebugPublic/
32-
[Rr]elease/
33-
[Rr]eleases/
30+
[Bb]in/[Dd]ebug/
31+
[Bb]in/[Dd]ebugPublic/
32+
[Bb]in/[Rr]elease/
33+
[Bb]in/[Rr]eleases/
3434
x64/
3535
x86/
3636
bld/

‎Project/Hebrew Calendar (vs2022).csproj‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@
171171
<SubType>Form</SubType>
172172
</Compile>
173173
<Compile Include="Dependencies\Windows Global Hotkey\HotkeyManager.cs" />
174-
<Compile Include="Source\Common\Core\Diagnostics\Chronometer.cs" />
174+
<Compile Include="Source\Common\Core\Debug\Chronometer.cs" />
175175
<Compile Include="Source\Common\Core\Classes\EnumHelper.cs" />
176176
<Compile Include="Source\Common\Core\Classes\ExportHelper.cs" />
177177
<Compile Include="Source\Common\Core\Classes\ObjectHelper.cs" />
@@ -194,9 +194,9 @@
194194
<Compile Include="Source\Common\Core\Data\SQLiteDate.cs" />
195195
<Compile Include="Source\Common\Core\Data\SQLiteNetHelper.cs" />
196196
<Compile Include="Source\Common\Core\Data\SQLiteOdbcHelper.cs" />
197-
<Compile Include="Source\Common\Core\Diagnostics\DebugManager.cs" />
198-
<Compile Include="Source\Common\Core\Diagnostics\DebugManager.Delegates.cs" />
199-
<Compile Include="Source\Common\Core\Diagnostics\DebugManager.Trace.cs" />
197+
<Compile Include="Source\Common\Core\Debug\DebugManager.cs" />
198+
<Compile Include="Source\Common\Core\Debug\DebugManager.Delegates.cs" />
199+
<Compile Include="Source\Common\Core\Debug\DebugManager.Trace.cs" />
200200
<Compile Include="Source\Common\Core\Display\AutoMenu.cs" />
201201
<Compile Include="Source\Common\Core\Display\AutoMenu.Test.cs" />
202202
<Compile Include="Source\Common\Core\Display\DisplayManager.cs" />
File renamed without changes.

Project/Source/Common/Core/Diagnostics/DebugManager.Delegates.cs renamed to Project/Source/Common/Core/Debug/DebugManager.Delegates.cs

File renamed without changes.

Project/Source/Common/Core/Diagnostics/DebugManager.Listener.cs renamed to Project/Source/Common/Core/Debug/DebugManager.Listener.cs

File renamed without changes.

Project/Source/Common/Core/Diagnostics/DebugManager.Trace.cs renamed to Project/Source/Common/Core/Debug/DebugManager.Trace.cs

File renamed without changes.
File renamed without changes.

Project/Source/Common/Hebrew/Classes/HebrewGlobals.providers.cs renamed to Project/Source/Common/Hebrew/Classes/HebrewGlobals.Providers.cs

File renamed without changes.

‎Project/Source/Forms/Config/PreferencesForm.Initialize.cs‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,15 @@ private void LoadEvents()
238238
/// </summary>
239239
private void LoadFonts()
240240
{
241-
foreach ( var value in new InstalledFontCollection().Families.OrderBy(f => f.Name) )
242-
if ( MonoSpacedFonts.Contains(value.Name.ToLower()) )
243-
{
244-
int index = EditTextReportFontName.Items.Add(value.Name);
245-
if ( value.Name == Settings.FontName )
246-
EditTextReportFontName.SelectedIndex = index;
247-
}
241+
var fonts = new InstalledFontCollection().Families
242+
.Where(value => MonoSpacedFonts.Contains(value.Name.ToLower()))
243+
.OrderBy(f => f.Name);
244+
foreach ( var value in fonts )
245+
{
246+
int index = EditTextReportFontName.Items.Add(value.Name);
247+
if ( value.Name == Settings.FontName )
248+
EditTextReportFontName.SelectedIndex = index;
249+
}
248250
}
249251

250252
/// <summary>

‎Project/Source/Forms/MainForm/UI/MainForm.TrayIcon.cs‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
/// You may add additional accurate notices of copyright ownership.
1212
/// </license>
1313
/// <created> 2016-04 </created>
14-
/// <edited> 2021-09 </edited>
14+
/// <edited> 2021-11 </edited>
1515
using System;
1616
using System.Windows.Forms;
1717
using Ordisoftware.Core;
@@ -72,7 +72,7 @@ public void DoMenuShowHide_Click(object sender, EventArgs e)
7272
{
7373
SystemManager.TryCatchManage(() =>
7474
{
75-
if ( Visible && WindowState == FormWindowState.Minimized )
75+
if ( Visible && WindowState == FormWindowState.Minimized && ( sender is null or NotifyIcon ) )
7676
{
7777
WindowState = Settings.MainFormState;
7878
UpdateTitles(true);
@@ -110,6 +110,11 @@ public void DoMenuShowHide_Click(object sender, EventArgs e)
110110
GoToDate(CalendarMonth.CalendarDate.Date);
111111
}
112112
else
113+
if ( Visible && !this.IsVisibleOnTop(80) )
114+
{
115+
this.Popup();
116+
}
117+
else
113118
{
114119
Settings.MainFormState = WindowState;
115120
WindowState = FormWindowState.Minimized;

0 commit comments

Comments
 (0)