From 6162670bbd29750850e6bc6becaf64bdd0da01fd Mon Sep 17 00:00:00 2001 From: bubnikv Date: Thu, 23 Mar 2017 18:02:35 +0100 Subject: [PATCH] Fixing Window selections wrong https://github.com/prusa3d/Slic3r/issues/191 Thanks @uclaros https://github.com/alexrj/Slic3r/commit/94f60db114f45433c47e1cf71f84ab552902d99e --- lib/Slic3r/GUI/MainFrame.pm | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/lib/Slic3r/GUI/MainFrame.pm b/lib/Slic3r/GUI/MainFrame.pm index eff8ae4b27..d10a39bbef 100644 --- a/lib/Slic3r/GUI/MainFrame.pm +++ b/lib/Slic3r/GUI/MainFrame.pm @@ -276,13 +276,16 @@ sub _init_menubar { $self->_append_menu_item($windowMenu, "Select &Plater Tab\tCtrl+1", 'Show the plater', sub { $self->select_tab(0); }, undef, 'application_view_tile.png'); - if (!$self->{no_controller}) { - $self->_append_menu_item($windowMenu, "Select &Controller Tab\tCtrl+T", 'Show the printer controller', sub { - $self->select_tab(1); - }, undef, 'printer_empty.png'); - } + $tab_offset += 1; + } + if (!$self->{no_controller}) { + $self->_append_menu_item($windowMenu, "Select &Controller Tab\tCtrl+T", 'Show the printer controller', sub { + $self->select_tab(1); + }, undef, 'printer_empty.png'); + $tab_offset += 1; + } + if ($tab_offset > 0) { $windowMenu->AppendSeparator(); - $tab_offset += 2; } $self->_append_menu_item($windowMenu, "Select P&rint Settings Tab\tCtrl+2", 'Show the print settings', sub { $self->select_tab($tab_offset+0);