mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix error when drag-n-drop a file from network location to home screen (#9821)
Fix error when drag-n-drop a file from network location to home screen on Windows
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user