mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
FIX: translation problem
1. add regroup link jira: NONE Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Ia90c80f5ff86e785e00fb0c38360eb33424a5ddd (cherry picked from commit 01be3a51e646a9ca4277c490396417c95d983648)
This commit is contained in:
@@ -31,6 +31,7 @@
|
||||
#include "NotificationManager.hpp"
|
||||
#include "format.hpp"
|
||||
#include "DailyTips.hpp"
|
||||
#include "FilamentMapDialog.hpp"
|
||||
|
||||
#include "slic3r/GUI/Gizmos/GLGizmoPainterBase.hpp"
|
||||
#include "slic3r/Utils/UndoRedo.hpp"
|
||||
@@ -10207,16 +10208,15 @@ void GLCanvas3D::_set_warning_notification(EWarning warning, bool state)
|
||||
}
|
||||
}
|
||||
if (warning == EWarning::FilamentPrintableError) {
|
||||
if (state)
|
||||
notification_manager.push_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel, text, _u8L("Click Wiki for help."),
|
||||
[](wxEvtHandler*) {
|
||||
std::string language = wxGetApp().app_config->get("language");
|
||||
wxString region = L"en";
|
||||
if (language.find("zh") == 0)
|
||||
region = L"zh";
|
||||
wxGetApp().open_browser_with_warning_dialog(wxString::Format(L"https://wiki.bambulab.com/%s/filament-acc/filament/h2d-filament-config-limit", region));
|
||||
return false;
|
||||
});
|
||||
if (state){
|
||||
auto callback = [](wxEvtHandler*) {
|
||||
auto plater = wxGetApp().plater();
|
||||
auto partplate = plater->get_partplate_list().get_curr_plate();
|
||||
try_pop_up_before_slice(false, plater, partplate, true); // ignore the return value
|
||||
return false;
|
||||
};
|
||||
notification_manager.push_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel, text, _u8L("Click here to regroup"), callback);
|
||||
}
|
||||
else
|
||||
notification_manager.close_slicing_customize_error_notification(NotificationType::BBLFilamentPrintableError, NotificationLevel::ErrorNotificationLevel);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user