| 657 | } |
| 658 | |
| 659 | uint64 Sandbox::execExternal(const QString &cmd) { |
| 660 | DEBUG_LOG(("Sandbox Info: executing external command '%1'").arg(cmd)); |
| 661 | if (cmd == "show") { |
| 662 | if (Core::IsAppLaunched() && Core::App().activePrimaryWindow()) { |
| 663 | const auto window = Core::App().activePrimaryWindow(); |
| 664 | window->activate(); |
| 665 | return Platform::ActivationWindowId(window->widget()); |
| 666 | } else if (const auto window = PreLaunchWindow::instance()) { |
| 667 | window->activate(); |
| 668 | return Platform::ActivationWindowId(window); |
| 669 | } |
| 670 | } else if (cmd == "quit") { |
| 671 | Quit(); |
| 672 | } |
| 673 | return 0; |
| 674 | } |
| 675 | |
| 676 | } // namespace Core |
| 677 |
nothing calls this directly
no test coverage detected