ref:d6bc76e3d4aa9bdacd13989acde452aae86dd4c3

fix: clear tray icon when unpairing the last paired client (#4890)

SHA: d6bc76e3d4aa9bdacd13989acde452aae86dd4c3
Author: aliefe04 <efecakici98@gmail.com>
Date: 2026-03-22 23:10
Parents: 24b66fe
1 files changed +7 -1
Type
src/confighttp.cpp +7 −1
@@ -879,7 +879,13 @@
nlohmann::json output_tree;
const nlohmann::json input_tree = nlohmann::json::parse(ss);
const std::string uuid = input_tree.value("uuid", "");
output_tree["status"] = nvhttp::unpair_client(uuid);
const bool removed = nvhttp::unpair_client(uuid);
output_tree["status"] = removed;
if (removed && nvhttp::get_all_clients().empty()) {
proc::proc.terminate();
}
send_response(response, output_tree);
} catch (std::exception &e) {
BOOST_LOG(warning) << "Unpair: "sv << e.what();