Skip to content

Commit

Permalink
Per-toolhead settings: Update terminology
Browse files Browse the repository at this point in the history
BFW-5985
  • Loading branch information
CZDanol-prusa authored and CZDanol committed Sep 6, 2024
1 parent ef641b4 commit 23f7b07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/gui/MItem_menus.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,11 @@ void MI_SERIAL_PRINTING_SCREEN_ENABLE::OnChange(size_t old_index) {
MI_TOOLHEAD_SETTINGS::MI_TOOLHEAD_SETTINGS()
: IWindowMenuItem(
#if HAS_TOOLCHANGER()
prusa_toolchanger.get_num_enabled_tools() > 1 ? _("Tools") : _("Tool"),
#else
_("Toolhead"),
prusa_toolchanger.is_toolchanger_enabled()
? _("Tools")
:
#endif
_("Toolhead"),
nullptr, is_enabled_t::yes, is_hidden_t::no, expands_t::yes) {
}

Expand Down
8 changes: 7 additions & 1 deletion src/gui/screen/toolhead/screen_toolhead_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,15 @@ ScreenToolheadDetail::ScreenToolheadDetail(Toolhead toolhead)
{
if (toolhead == all_toolheads) {
header.SetText(_("ALL TOOLS"));
} else {
}
#if HAS_TOOLCHANGER()
else if (prusa_toolchanger.is_toolchanger_enabled()) {
header.SetText(_("TOOL %d").formatted(title_params, std::get<ToolheadIndex>(toolhead) + 1));
}
#endif
else {
header.SetText(_("TOOLHEAD"));
}

menu_set_toolhead(container, toolhead);

Expand Down

0 comments on commit 23f7b07

Please sign in to comment.