MCPcopy Create free account
hub / github.com/TranslucentTB/TranslucentTB / PostNewInstanceNotification

Method PostNewInstanceNotification

TranslucentTB/mainappwindow.cpp:342–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340}
341
342void 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}

Callers

nothing calls this directly

Calls 2

process_idMethod · 0.80
post_messageMethod · 0.80

Tested by

no test coverage detected