From bb5b2de3f13c1d31c53ae94f6eddcf6780025c23 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 21 Nov 2019 06:52:37 -0500 Subject: [PATCH] install: Always show the op column Otherwise, it is not clear what changes the question below the table refers to. Fixes: https://github.com/flatpak/flatpak/issues/3075 --- app/flatpak-cli-transaction.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/app/flatpak-cli-transaction.c b/app/flatpak-cli-transaction.c index 58e521ec..89baa01f 100644 --- a/app/flatpak-cli-transaction.c +++ b/app/flatpak-cli-transaction.c @@ -889,12 +889,9 @@ transaction_ready (FlatpakTransaction *transaction) flatpak_table_printer_set_column_expand (printer, i, TRUE); flatpak_table_printer_set_column_title (printer, i++, _("Branch")); - if (self->installing + self->updating + self->uninstalling > 1) - { - flatpak_table_printer_set_column_expand (printer, i, TRUE); - /* translators: This is short for operation, the title of a one-char column */ - flatpak_table_printer_set_column_title (printer, i++, _("Op")); - } + flatpak_table_printer_set_column_expand (printer, i, TRUE); + /* translators: This is short for operation, the title of a one-char column */ + flatpak_table_printer_set_column_title (printer, i++, _("Op")); if (self->installing || self->updating) { @@ -931,9 +928,7 @@ transaction_ready (FlatpakTransaction *transaction) flatpak_table_printer_add_column (printer, parts[1]); flatpak_table_printer_add_column (printer, parts[2]); flatpak_table_printer_add_column (printer, parts[3]); - - if (self->installing + self->updating + self->uninstalling > 1) - flatpak_table_printer_add_column (printer, op_shorthand[type]); + flatpak_table_printer_add_column (printer, op_shorthand[type]); if (type == FLATPAK_TRANSACTION_OPERATION_INSTALL || type == FLATPAK_TRANSACTION_OPERATION_INSTALL_BUNDLE ||