[gnome-contacts] Contacts-list: remain selection mode even if no contacts are selected
- From: Niels De Graef <nielsdg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Contacts-list: remain selection mode even if no contacts are selected
- Date: Fri, 20 Aug 2021 11:41:06 +0000 (UTC)
commit ae49be135b7f0ec8b5b4d35de9354284104ce539
Author: Lorenz Wildberg <lorenz wild-fisch de>
Date: Mon Aug 9 11:44:22 2021 +0200
Contacts-list: remain selection mode even if no contacts are selected
As there is now an selection mode button as the primary activatiopn
method for selecting contacts, the deactivation of selection mode
through deactivation of the last item is more irritating than useful.
You must do it now through the cancel button.
src/contacts-contact-list.vala | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/contacts-contact-list.vala b/src/contacts-contact-list.vala
index 3ac0c70a..816784d0 100644
--- a/src/contacts-contact-list.vala
+++ b/src/contacts-contact-list.vala
@@ -239,11 +239,6 @@ public class Contacts.ContactList : Gtk.ListBox {
if (row.selector_button.active && this.nr_contacts_marked == 1)
this.state = UiState.SELECTING;
-
- // User deselected the last checkbox: leave selection mode
- if (!row.selector_button.active && this.nr_contacts_marked == 0)
- this.state = UiState.SHOWING;
-
contacts_marked (this.nr_contacts_marked);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]