mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-06 14:37:36 -06: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:
parent
4b893b40a1
commit
0242e9462b
1 changed files with 2 additions and 0 deletions
|
@ -552,6 +552,8 @@ void WebViewPanel::OnNavigationRequest(wxWebViewEvent& evt)
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
if (file.StartsWith('/'))
|
if (file.StartsWith('/'))
|
||||||
file = file.Mid(1);
|
file = file.Mid(1);
|
||||||
|
else
|
||||||
|
file = "//" + file; // When file from network location
|
||||||
#endif
|
#endif
|
||||||
wxGetApp().plater()->load_files(wxArrayString{1, &file});
|
wxGetApp().plater()->load_files(wxArrayString{1, &file});
|
||||||
evt.Veto();
|
evt.Veto();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue