| 369 | } |
| 370 | |
| 371 | void HotkeyManager::setHotkeyCommand(std::string cmd) { |
| 372 | std::unique_lock<std::mutex> l(lock); |
| 373 | queued_command = std::move(cmd); |
| 374 | hotkey_sig = HotkeySignal::CmdReady; |
| 375 | l.unlock(); |
| 376 | cond.notify_all(); |
| 377 | } |
| 378 | |
| 379 | void HotkeyManager::requestKeybindingInput(bool cancel) { |
| 380 | std::lock_guard<std::mutex> l(lock); |
no test coverage detected