Move app commands to strings
This commit is contained in:
parent
210417b428
commit
cde7c6a4ef
9 changed files with 125 additions and 63 deletions
|
@ -162,8 +162,8 @@ void Window::OnDevToolsClosed() {
|
|||
devtools_web_contents_.Reset();
|
||||
}
|
||||
|
||||
void Window::OnExecuteWindowsCommand(int command_id) {
|
||||
Emit("app-command", command_id);
|
||||
void Window::OnExecuteWindowsCommand(std::string& command_name) {
|
||||
Emit("app-command", command_name);
|
||||
}
|
||||
|
||||
// static
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue