Commit Graph
11 Commits
Author SHA1 Message Date
HanifKoh e68694dbaf Percent-Encode Local File URLs for Embedded Web Pages (#15961)
* Percent-Encode Local File URLs for Embedded Web Pages

The Home tab, setup wizard, Project tab and other embedded pages were
loaded from file:// URLs built by pasting the resources path into a
string. A '#', '%' or '?' in the install path was then read as a URL
fragment, escape or query, so the pages failed to load, for example a
portable install under D:\#OneDrive showed a directory listing instead
of the setup wizard.

Add file_url_from_path(), built on wxFileSystem::FileNameToURL, and use
it wherever a local page or image URL is built from a path. Queries such
as ?lang= are appended after the path is encoded. The wizard's printer
cover images are passed to the page as file URLs too.

* Encode the Login Error Page URL and Cover More Windows Path Forms

The login dialog's error page was still loaded from a raw resources path;
it now uses file_url_from_path like the other local pages.

The Windows file URL tests now also cover a resources path joined with a
forward-slash relative path, as the callers build them, and a UNC path.

* Build the Flush Dialog Page URLs with the Shared Helper

WipingDialog and NozzleListTable still called
wxFileSystem::FileNameToURL directly. They now go through
file_url_from_path like every other local page, so the URLs are built
in one place.

Adds a test for a resources directory with a '#' in its name, which the
plugin page check did not recognise before.
2026-09-29 22:30:56 +08:00
Aidan 951fc8e98a A *lot* of import fixes for flatpak (#3909)
* A *lot* of import fixes for flatpak

Aside, thank you @hadess for the majority of these fixes. You are the
base point for a lot of issues fixed during the creation of this
flatpak.

* Use slic3r::load_string_file

Boost 1.84 removed `boost::fs::load_string_file` so use the func located
in Utils.hpp
2024-01-31 11:23:29 +00:00
chunmao.guo d164889aa4 ENH: [STUDIO-1647] use WebView2 put_UserAgent
Change-Id: Ifae6589892353adb4b940fbe77d7d0f9521330dc
2023-01-10 19:08:26 +08:00
chunmao.guo b60cabef28 FIX: [STUDIO-1503] events bind after recreate webview
Change-Id: I90ab03a43c5bedb7a89ee50a2ead91ddf5bdf8c3
2022-12-15 04:38:15 -05:00
chunmao.guo bf24a71b60 ENH: webview dark mode
Change-Id: I0b58e759268d057d5942dd8726c37d1abbdd5930
2022-12-15 04:38:15 -05:00
chunmao.guo af54a34567 FIX: wxDisplay crash on wxNOT_FOUND
Change-Id: If7b936d361873e20fb71b7fc35c9d270cd39a763
2022-08-26 09:25:59 +08:00
chunmao.guo 7be639019e FIX: destory timers & check webview consist
Change-Id: If95a973e1b3c6bf0da3611c30e0e44e191c9b06a
2022-08-26 09:25:59 +08:00
chunmao.guo 46a9df509c FIX: temp disable markdown tooltip on release build
Change-Id: Idde9a5127a064c1b6593607bca122eda21cdeee6
2022-08-05 16:11:42 +08:00
chunmao.guo 18920df354 FIX: temp disable markdown tooltip on release to public
Change-Id: I6f37b9176aaec6f0d7d3ccc6aa60c5a829729fd5
2022-08-05 16:11:42 +08:00
lane.wei e9e4d75877 Update the codes to 01.01.00.10 for the formal release
1. first formal version of macos
2. add the bambu networking plugin install logic
3. auto compute the wipe volume when filament change
4. add the logic of wiping into support
5. refine the GUI layout and icons, improve the gui apperance in lots of
   small places
6. serveral improve to support
7. support AMS auto-mapping
8. disable lots of unstable features: such as params table, media file download, HMS
9. fix serveral kinds of bugs
10. update the document of building
11. ...
2022-07-22 20:35:34 +08:00
lane.wei 1555904bef Add the full source of BambuStudio
using version 1.0.10
2022-07-15 23:42:08 +08:00