Commit 3507a07b authored by IBBoard's avatar IBBoard Committed by Bastien Nocera
Browse files

selections: Remove the "inconsistent" state when not needed

Remove the "inconsistent" state when the user toggles a collection.

According to the docs for GtkToggleButton:

"Normally you would turn off the inconsistent state again if the
user toggles the toggle button. This has to be done manually,
gtk_toggle_button_set_inconsistent() only affects visual appearance,
it doesn’t affect the semantics of the button."

Closes: #3
parent e40b0de3
Pipeline #101024 passed with stage
in 8 minutes and 31 seconds
......@@ -347,6 +347,7 @@ const CollectionRow = new Lang.Class({
function(checkButton) {
let collId = this.collection.id;
let state = checkButton.get_active();
checkButton.set_inconsistent(false);
let job = new SetCollectionForSelectionJob(collId, state);
job.run();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment