[feat] add online presence check before connecting and show offline warning dialog

This commit is contained in:
dijunkun
2026-03-01 16:29:11 +08:00
parent 123d4cf595
commit adfab363c1
3 changed files with 59 additions and 4 deletions

View File

@@ -220,6 +220,8 @@ static std::vector<std::string> online = {
reinterpret_cast<const char*>(u8"在线"), "Online"};
static std::vector<std::string> offline = {
reinterpret_cast<const char*>(u8"离线"), "Offline"};
static std::vector<std::string> device_offline = {
reinterpret_cast<const char*>(u8"设备离线"), "Device Offline"};
#if _WIN32
static std::vector<LPCWSTR> exit_program = {L"退出", L"Exit"};