@Override protected void performAction(ActionEvent e) { // toggle the setting ApplicationSettings.SHOW_SEEDING_TRANSFERS.setValue( !ApplicationSettings.SHOW_SEEDING_TRANSFERS.getValue()); updateName(); BTDownloadMediator.instance().updateTableFilters(); }
private void updateName() { if (ApplicationSettings.SHOW_SEEDING_TRANSFERS.getValue()) { putValue(Action.NAME, I18n.tr("Hide Seeding Transfers")); putValue(LimeAction.SHORT_NAME, I18n.tr("Hide Seeding Transfers")); putValue(Action.SHORT_DESCRIPTION, I18n.tr("Don't show Seeding Transfers")); } else { putValue(Action.NAME, I18n.tr("Show Seeding Transfers")); putValue(LimeAction.SHORT_NAME, I18n.tr("Show Seeding Transfers")); putValue(Action.SHORT_DESCRIPTION, I18n.tr("Show Seeding Transfers")); } }