mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
启动时进行 WebView2 运行时检查 (#1944)
* 启动时进行 WebView2 运行时检查 * 启动时进行 WebView2 运行时检查 * skip code sign for PR build * Russian translation for OrcaSlicer V1.6.4 (#1900) * Russian translation for OrcaSlicer V1.6.4 Please replace the existing translation with my translation. Advantages of this translation: -A normal translation based on the Prusa slicer translation (the translation of which I have been supporting for a long time). The translation that is used now is crude, there are a lot of errors and typos. -Added missing lines I also made a pull request for this translation for Bambu Studio (with small edits and add lines) * file name and location updates * update rename Russian.po in OrcaSlicer_ru.po * update * move OrcaSlicer_ru.po to correct location --------- Co-authored-by: SoftFever <softfeverever@gmail.com> * Fixed viewer resize malfunction when cjk language is use (#1909) * Update Korean translation * 1. Fix blank button text after translation 2. Fix some mistranslated korean * -fix bottom surface in gcode viewer -update korean translation * - Fixed UI being broken 'cause "display" text size could not be calculated when cjk language is use * Port overhang extra perimeters from PrusaSlicer (#1939) * Port overhang extra perimeters from PrusaSlicer * Reduce duplicated code * Add credits --------- Co-authored-by: SoftFever <softfeverever@gmail.com> Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz> * Create OrcaSlicer_zh_TW.po for traditional Chinese translate (#1952) Create OrcaSlicer_zh_TW.po * update czech translate (#1949) * QoL: make slider thinner * QoL: show transparent shell in gcode preview and truncate long gcode line caused by native Klipper commands * PlaceholderParser: new interpolate_table() "function" interpolate_table(x, (x0, y0), (x1, y1), (x2, y2), ...) interpolates a table at position x. * GCodeGenerator / custom G-codes: Added new read/only options providing the amount of total extruded material and per extruder extruded material up to the point the value is evaluated: "extruded_volume", "extruded_weight", "extruded_volume_total", "extruded_weight_total" * support profile notes * Add support for PrusaLink webview * update Prusa profiles * Support Marlin 2 * tweak MK4IS * Fix Linux build errors * Add Tranditional Chinese * Fix *nix build error and some other fixes --------- Co-authored-by: ZdDroid <601865048@qq.com> Co-authored-by: SoftFever <softfeverever@gmail.com> Co-authored-by: Andy <andylg@yandex.ru> Co-authored-by: Hotsolidinfill <138652683+Hotsolidinfill@users.noreply.github.com> Co-authored-by: Noisyfox <timemanager.rick@gmail.com> Co-authored-by: PavelMikus <pavel.mikus.mail@seznam.cz> Co-authored-by: ablegods <85563455+ablegods@users.noreply.github.com> Co-authored-by: renemosner <99507763+renemosner@users.noreply.github.com> Co-authored-by: Vojtech Bubnik <bubnikv@gmail.com>
This commit is contained in:
parent
0b7b606881
commit
51eae690bd
4 changed files with 93 additions and 1 deletions
|
@ -1295,6 +1295,9 @@ GUI_App::GUI_App()
|
|||
//app config initializes early becasuse it is used in instance checking in OrcaSlicer.cpp
|
||||
this->init_app_config();
|
||||
this->init_download_path();
|
||||
#if wxUSE_WEBVIEW_EDGE
|
||||
this->init_webview_runtime();
|
||||
#endif
|
||||
|
||||
reset_to_active();
|
||||
}
|
||||
|
@ -2045,6 +2048,20 @@ void GUI_App::init_download_path()
|
|||
}
|
||||
}
|
||||
|
||||
#if wxUSE_WEBVIEW_EDGE
|
||||
void GUI_App::init_webview_runtime()
|
||||
{
|
||||
// Check WebView Runtime
|
||||
if (!WebView::CheckWebViewRuntime()) {
|
||||
int nRet = wxMessageBox(_L("Orca Slicer requires the Microsoft WebView2 Runtime to operate certain features.\nClick Yes to install it now."),
|
||||
_L("WebView2 Runtime"), wxYES_NO);
|
||||
if (nRet == wxYES) {
|
||||
WebView::DownloadAndInstallWebViewRuntime();
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
void GUI_App::init_app_config()
|
||||
{
|
||||
// Profiles for the alpha are stored into the PrusaSlicer-alpha directory to not mix with the current release.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue