MCPcopy Create free account
hub / github.com/RGAA-Software/GoDesk / ReStart

Method ReStart

src/render_panel/gr_render_controller.cpp:57–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

55 }
56
57 bool GrRenderController::ReStart() {
58 tc::ServiceMessage srv_msg;
59 srv_msg.set_type(ServiceMessageType::kSrvRestartServer);
60 auto sub = srv_msg.mutable_restart_server();
61 sub->set_work_dir(GetWorkDir().toStdString());
62 sub->set_app_path(GetAppPath().toStdString());
63 auto args = this->GetArgs();
64 LOGI("Restart args:");
65 for (auto& arg : args) {
66 sub->add_args(arg);
67 LOGI("{}", arg);
68 }
69 app_->PostMessage2Service(srv_msg.SerializeAsString());
70 return true;
71 }
72
73 void GrRenderController::Exit() {
74

Callers 1

RpRestartServerMethod · 0.80

Calls 2

GetArgsMethod · 0.95
PostMessage2ServiceMethod · 0.80

Tested by

no test coverage detected