toolbar: process actions

Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
William Casarin
2025-06-06 15:40:04 -07:00
parent 0ea1a92ea7
commit e8d240df42
4 changed files with 95 additions and 17 deletions

View File

@@ -37,9 +37,8 @@ impl Default for DecksCache {
impl DecksCache {
/// Gets the first column in the currently active user's active deck
pub fn first_column_mut(&mut self, accounts: &notedeck::Accounts) -> Option<&mut Column> {
self.active_columns_mut(accounts)
.and_then(|ad| ad.columns_mut().first_mut())
pub fn selected_column_mut(&mut self, accounts: &notedeck::Accounts) -> Option<&mut Column> {
self.active_columns_mut(accounts).map(|ad| ad.selected())
}
/// Gets the active columns