privacy_mode_win_magnifier: ui prompt if succeeded

Signed-off-by: fufesou <shuanglongchen@yeah.net>
This commit is contained in:
fufesou 2022-05-31 12:01:22 +08:00
parent 4502f94e99
commit da392f7f72
14 changed files with 30 additions and 0 deletions

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "被控端退出"),
("Failed to turn off", "退出失败"),
("Turned off", "退出"),
("In privacy mode", "进入隐私模式"),
("Out privacy mode", "退出隐私模式"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Peer exit"),
("Failed to turn off", "Nepodařilo se vypnout"),
("Turned off", "Vypnutý"),
("In privacy mode", "v režimu soukromí"),
("Out privacy mode", "mimo režim soukromí"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Peer-Ausgang"),
("Failed to turn off", "Ausschalten fehlgeschlagen"),
("Turned off", "Ausgeschaltet"),
("In privacy mode", "im Datenschutzmodus"),
("Out privacy mode", "Datenschutzmodus aus"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", ""),
("Failed to turn off", ""),
("Turned off", ""),
("In privacy mode", ""),
("Out privacy mode", ""),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Sortie des pairs"),
("Failed to turn off", "Échec de la désactivation"),
("Turned off", "Éteindre"),
("In privacy mode", "en mode privé"),
("Out privacy mode", "hors mode de confidentialité"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "keluar rekan"),
("Failed to turn off", "Gagal mematikan"),
("Turned off", "Matikan"),
("In privacy mode", "Dalam mode privasi"),
("Out privacy mode", "Keluar dari mode privasi"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Uscita tra pari"),
("Failed to turn off", "Impossibile spegnere"),
("Turned off", "Spegni"),
("In privacy mode", "In modalità privacy"),
("Out privacy mode", "Fuori modalità privacy"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Saída de pares"),
("Failed to turn off", "Falha ao desligar"),
("Turned off", "Desligado"),
("In privacy mode", "No modo de privacidade"),
("Out privacy mode", "Fora do modo de privacidade"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Одноранговый выход"),
("Failed to turn off", "Не удалось отключить"),
("Turned off", "Выключен"),
("In privacy mode", "В режиме конфиденциальности"),
("Out privacy mode", "Выход из режима конфиденциальности"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "Peer exit"),
("Failed to turn off", "Nepodarilo sa vypnúť"),
("Turned off", "Vypnutý"),
("In privacy mode", "V režime súkromia"),
("Out privacy mode", "Mimo režimu súkromia"),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", ""),
("Failed to turn off", ""),
("Turned off", ""),
("In privacy mode", ""),
("Out privacy mode", ""),
].iter().cloned().collect();
}

View File

@ -279,5 +279,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "akran çıkışı"),
("Failed to turn off", "kapatılamadı"),
("Turned off", "Kapalı"),
("In privacy mode", "Gizlilik modunda"),
("Out privacy mode", "Gizlilik modu dışında"),
].iter().cloned().collect();
}

View File

@ -280,5 +280,7 @@ pub static ref T: std::collections::HashMap<&'static str, &'static str> =
("Peer exit", "被控端退出"),
("Failed to turn off", "退出失敗"),
("Turned off", "退出"),
("In privacy mode", "開啟隱私模式"),
("Out privacy mode", "退出隱私模式"),
].iter().cloned().collect();
}

View File

@ -2349,6 +2349,8 @@ impl Remote {
self.update_privacy_mode(false);
}
back_notification::PrivacyModeState::OnSucceeded => {
self.handler
.msgbox("custom-nocancel", "Privacy mode", "In privacy mode");
self.update_privacy_mode(true);
}
back_notification::PrivacyModeState::OnFailedDenied => {
@ -2367,6 +2369,8 @@ impl Remote {
self.update_privacy_mode(false);
}
back_notification::PrivacyModeState::OffSucceeded => {
self.handler
.msgbox("custom-nocancel", "Privacy mode", "Out privacy mode");
self.update_privacy_mode(false);
}
back_notification::PrivacyModeState::OffByPeer => {