mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-12-12 11:06:57 +00:00
fix: window on top when url scheme received from ipc
This commit is contained in:
@@ -211,7 +211,12 @@ class FfiModel with ChangeNotifier {
|
||||
parent.target?.elevationModel.onPortableServiceRunning(evt);
|
||||
} else if (name == 'on_url_scheme_received') {
|
||||
final url = evt['url'].toString();
|
||||
parseRustdeskUri(url);
|
||||
// If we invoke uri with blank path, we just bring the main window to the top.
|
||||
if (url.isEmpty) {
|
||||
window_on_top(null);
|
||||
} else {
|
||||
parseRustdeskUri(url);
|
||||
}
|
||||
} else if (name == 'on_voice_call_waiting') {
|
||||
// Waiting for the response from the peer.
|
||||
parent.target?.chatModel.onVoiceCallWaiting();
|
||||
|
||||
Reference in New Issue
Block a user