Skip to content

Commit

Permalink
added tray re-init when explorer restarts
Browse files Browse the repository at this point in the history
  • Loading branch information
k1tbyte committed Jul 31, 2024
1 parent c6a0be5 commit ceabd34
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/View/MainWindow.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,9 @@ class MainWindow final : public AbstractWindow {
{WM_EXITSIZEMOVE, [this](WPARAM wParam, LPARAM lParam) { OnDragEnd(wParam, lParam); } },
{WM_TIMER, [this](WPARAM wParam, LPARAM lParam) { OnTimer(wParam, lParam); } },
{WM_UPDATE_MIC, [this](WPARAM wParam, LPARAM lParam) { SetMicState(lParam); } },
{WM_UPDATE_STATE, [this](WPARAM wParam, LPARAM lParam){ UpdateWindowState(); } }
{WM_UPDATE_STATE, [this](WPARAM wParam, LPARAM lParam){ UpdateWindowState(); } },
// We need to re-initialize the tray icon when the explorer restarts or crashes.
{ RegisterWindowMessageA("TaskbarCreated"), [this](WPARAM wParam, LPARAM lParam){ InitTrayIcon(); } }
};
};

Expand Down

0 comments on commit ceabd34

Please sign in to comment.