Skip to content

Commit

Permalink
ui/ListWindow: remove useless message "Range selection enabled/disabled"
Browse files Browse the repository at this point in the history
This doesn't help at all, it only hides the status bar for no reason,
and the "enabled" message is never visible due to
Page::PaintStatusBarOverride().
  • Loading branch information
MaxKellermann committed Sep 2, 2024
1 parent 6deccdb commit e1d96c2
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/ui/ListWindow.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
#include "Options.hxx"
#include "Command.hxx"
#include "paint.hxx"
#include "screen_status.hxx"
#include "screen_utils.hxx"
#include "i18n.h"

void
ListWindow::Paint(const ListRenderer &renderer) const noexcept
Expand Down Expand Up @@ -180,10 +178,8 @@ ListWindow::HandleCommand(Command cmd) noexcept
break;
case Command::LIST_RANGE_SELECT:
if (HasRangeSelection()) {
screen_status_message(_("Range selection disabled"));
DisableRangeSelection();
} else {
screen_status_message(_("Range selection enabled"));
EnableRangeSelection();
}
break;
Expand Down

0 comments on commit e1d96c2

Please sign in to comment.