new-xkit / XKit

Fork of XKit, the extension framework for Tumblr
https://new-xkit-extension.tumblr.com
Other
459 stars 135 forks source link

Mass+: Improve control button toggle consistency #2133

Closed marcustyphoon closed 1 year ago

marcustyphoon commented 1 year ago

This fixes an issue where the Mass+ "search by tags" function did not update the enabled/disabled status of Tumblr's edit buttons based on the number of posts selected.

There were a number of places in the code that did this manually, followed by a call to update_count(). This moves the status update into update_count(), so that it's no longer possible to forget!