mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-01-19 00:13:01 +08:00
fix request elevation menu not displayed when reconnect
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
parent
40d3085cc2
commit
661ce29519
@ -1660,6 +1660,7 @@ class ElevationModel with ChangeNotifier {
|
||||
bool get showRequestMenu => _canElevate && !_running;
|
||||
onPeerInfo(PeerInfo pi) {
|
||||
_canElevate = pi.platform == kPeerPlatformWindows && pi.sasEnabled == false;
|
||||
_running = false;
|
||||
}
|
||||
|
||||
onPortableServiceRunning(Map<String, dynamic> evt) {
|
||||
|
@ -2379,8 +2379,8 @@ impl Connection {
|
||||
));
|
||||
if self.authorized {
|
||||
let p = &mut self.portable;
|
||||
if running != p.last_running {
|
||||
p.last_running = running;
|
||||
if Some(running) != p.last_running {
|
||||
p.last_running = Some(running);
|
||||
let mut misc = Misc::new();
|
||||
misc.set_portable_service_running(running);
|
||||
let mut msg = Message::new();
|
||||
@ -2660,7 +2660,7 @@ pub enum FileAuditType {
|
||||
pub struct PortableState {
|
||||
pub last_uac: bool,
|
||||
pub last_foreground_window_elevated: bool,
|
||||
pub last_running: bool,
|
||||
pub last_running: Option<bool>,
|
||||
pub is_installed: bool,
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user