| 340 | } |
| 341 | |
| 342 | void MainAppWindow::PostNewInstanceNotification() |
| 343 | { |
| 344 | if (const auto msg = Window::RegisterMessage(WM_TTBNEWINSTANCESTARTED)) |
| 345 | { |
| 346 | if (const auto runningInstance = Window::Find(TRAY_WINDOW, APP_NAME)) |
| 347 | { |
| 348 | AllowSetForegroundWindow(runningInstance.process_id()); |
| 349 | runningInstance.post_message(*msg); |
| 350 | } |
| 351 | } |
| 352 | } |
nothing calls this directly
no test coverage detected