fix request elevation menu not displayed when reconnect

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-09-30 11:22:18 +08:00
parent 40d3085cc2
commit 661ce29519
2 changed files with 4 additions and 3 deletions

View File

@@ -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) {