Browse Source

Don't enable efficiency mode with tray icon

Having it only on while the tray icon is visible is unintended behaviour. I don't think we want it on regardless because we already use very few resources and don't want the timing to be messed with. https://github.com/HavenDV/H.NotifyIcon/blob/8f49bd377608800586f76f8e7599ffb273c9a41f/readme.md#efficiency-mode-
Daniel Chalmers 2 years ago
parent
commit
4c994220fe
1 changed files with 1 additions and 1 deletions
  1. 1 1
      DesktopClock/MainWindow.xaml.cs

+ 1 - 1
DesktopClock/MainWindow.xaml.cs

@@ -170,7 +170,7 @@ public partial class MainWindow : Window
                 _trayIcon = Resources["TrayIcon"] as TaskbarIcon;
                 _trayIcon.ContextMenu = Resources["MainContextMenu"] as ContextMenu;
                 _trayIcon.ContextMenu.DataContext = this;
-                _trayIcon.ForceCreate();
+                _trayIcon.ForceCreate(enablesEfficiencyMode: false);
             }
 
             if (!firstLaunch)