|
@@ -63,19 +63,19 @@ public partial class MainWindow : Window
|
|
|
public void CopyToClipboard() => Clipboard.SetText(CurrentTimeOrCountdownString);
|
|
|
|
|
|
/// <summary>
|
|
|
- /// Hides the window until it's activated again.
|
|
|
+ /// Minimizes the window.
|
|
|
/// </summary>
|
|
|
[RelayCommand]
|
|
|
public void HideForNow()
|
|
|
{
|
|
|
if (!Settings.Default.TipsShown.HasFlag(TeachingTips.HideForNow))
|
|
|
{
|
|
|
- MessageBox.Show(this, "Clock will be hidden until you open it again from the taskbar or system tray.", Title);
|
|
|
+ MessageBox.Show(this, "Clock will be minimized and can be opened again from the taskbar or system tray (if enabled).", Title);
|
|
|
|
|
|
Settings.Default.TipsShown |= TeachingTips.HideForNow;
|
|
|
}
|
|
|
|
|
|
- Opacity = 0;
|
|
|
+ WindowState = WindowState.Minimized;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
@@ -344,12 +344,6 @@ public partial class MainWindow : Window
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private void Window_Activated(object sender, EventArgs e)
|
|
|
- {
|
|
|
- // Reverse "Hide for now".
|
|
|
- Opacity = 1;
|
|
|
- }
|
|
|
-
|
|
|
private void Window_Closed(object sender, EventArgs e)
|
|
|
{
|
|
|
// Stop the file watcher before saving.
|