Skip to content

Commit eb1ea76

Browse files
committed
fix: clear tray icon when unpairing the last paired client (upstream d6bc76e, LizardByte#4890)
1 parent 61f0d41 commit eb1ea76

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/confighttp.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1586,7 +1586,12 @@ namespace confighttp {
15861586
return;
15871587
}
15881588

1589-
outputTree.put("status", nvhttp::unpair_client(uuid));
1589+
const bool removed = nvhttp::unpair_client(uuid);
1590+
outputTree.put("status", removed);
1591+
1592+
if (removed && nvhttp::get_all_clients().empty()) {
1593+
proc::proc.terminate();
1594+
}
15901595
}
15911596
catch (std::exception &e) {
15921597
BOOST_LOG(warning) << "Unpair: "sv << e.what();

0 commit comments

Comments
 (0)