Fix error when drag-n-drop a file from network location to home screen (#9821)
Some checks are pending
Build all / Build All (push) Waiting to run
Build all / Flatpak (push) Waiting to run

Fix error when drag-n-drop a file from network location to home screen on Windows
This commit is contained in:
Noisyfox 2025-06-07 17:38:23 +08:00 committed by GitHub
parent 4b893b40a1
commit 0242e9462b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -552,6 +552,8 @@ void WebViewPanel::OnNavigationRequest(wxWebViewEvent& evt)
#ifdef _WIN32
if (file.StartsWith('/'))
file = file.Mid(1);
else
file = "//" + file; // When file from network location
#endif
wxGetApp().plater()->load_files(wxArrayString{1, &file});
evt.Veto();