mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-22 04:28:05 +08:00
UpdateDialogs: Fix: Wrap update description
This commit is contained in:
parent
a1f34adcf6
commit
4edae08a11
@ -1,4 +1,7 @@
|
|||||||
|
|
||||||
|
option(SLIC3R_ENC_CHECK "Verify encoding of source files" 1)
|
||||||
|
|
||||||
|
if (SLIC3R_ENC_CHECK)
|
||||||
add_executable(encoding-check encoding-check.cpp)
|
add_executable(encoding-check encoding-check.cpp)
|
||||||
|
|
||||||
# A global no-op target which depends on all encodings checks,
|
# A global no-op target which depends on all encodings checks,
|
||||||
@ -10,11 +13,13 @@ add_custom_target(global-encoding-check
|
|||||||
ALL
|
ALL
|
||||||
DEPENDS encoding-check
|
DEPENDS encoding-check
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# Function that adds source file encoding check to a target
|
# Function that adds source file encoding check to a target
|
||||||
# using the above encoding-check binary
|
# using the above encoding-check binary
|
||||||
|
|
||||||
function(encoding_check TARGET)
|
function(encoding_check TARGET)
|
||||||
|
if (SLIC3R_ENC_CHECK)
|
||||||
# Obtain target source files
|
# Obtain target source files
|
||||||
get_target_property(T_SOURCES ${TARGET} SOURCES)
|
get_target_property(T_SOURCES ${TARGET} SOURCES)
|
||||||
|
|
||||||
@ -36,4 +41,5 @@ function(encoding_check TARGET)
|
|||||||
# via the global-encoding-check
|
# via the global-encoding-check
|
||||||
add_dependencies(global-encoding-check encoding-check-${TARGET})
|
add_dependencies(global-encoding-check encoding-check-${TARGET})
|
||||||
add_dependencies(${TARGET} global-encoding-check)
|
add_dependencies(${TARGET} global-encoding-check)
|
||||||
|
endif()
|
||||||
endfunction()
|
endfunction()
|
||||||
|
@ -113,7 +113,9 @@ MsgUpdateConfig::MsgUpdateConfig(const std::vector<Update> &updates) :
|
|||||||
|
|
||||||
if (! update.comment.empty()) {
|
if (! update.comment.empty()) {
|
||||||
flex->Add(new wxStaticText(this, wxID_ANY, _(L("Comment:"))), 0, wxALIGN_RIGHT);
|
flex->Add(new wxStaticText(this, wxID_ANY, _(L("Comment:"))), 0, wxALIGN_RIGHT);
|
||||||
flex->Add(new wxStaticText(this, wxID_ANY, from_u8(update.comment)));
|
auto *update_comment = new wxStaticText(this, wxID_ANY, from_u8(update.comment));
|
||||||
|
update_comment->Wrap(CONTENT_WIDTH * wxGetApp().em_unit());
|
||||||
|
flex->Add(update_comment);
|
||||||
}
|
}
|
||||||
|
|
||||||
versions->Add(flex);
|
versions->Add(flex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user