MCPcopy Create free account
hub / github.com/VSCodeConfigHelper/v4 / gui_handled

Function gui_handled

src-tauri/src/cli/mod.rs:133–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131}
132
133fn gui_handled() {
134 #[cfg(windows)]
135 winapi::free_console();
136 match gui() {
137 Ok(_) => (),
138 Err(e) => {
139 if let Some(id) = tasks::statistics::send_error(&e) {
140 native_dialog::MessageDialog::new()
141 .set_title("程序已报告错误")
142 .set_text(&format!(
143 "{}\n您可以将标识码 “{}” 发送至 guyutongxue@163.com,开发者会尽快帮您解决问题。",
144 e.to_string(),
145 id
146 ))
147 .set_type(native_dialog::MessageType::Error)
148 .show_alert()
149 .unwrap();
150 }
151 }
152 }
153}
154
155fn cli(mut args: CliArgs) -> Result<()> {
156 if args::early_exit(&args) {

Callers 1

runFunction · 0.85

Calls 3

free_consoleFunction · 0.85
guiFunction · 0.85
send_errorFunction · 0.85

Tested by

no test coverage detected