From 25453cba38db7ba21543bfaebd48c23006bf1d39 Mon Sep 17 00:00:00 2001 From: Joe Carstairs Date: Sun, 1 Feb 2026 21:10:43 +0000 Subject: Rename SetNextBucket -> SetNext, SetPrevBucket -> SetPrev --- .../src/gui/components/buckets_view.rs | 35 +++++++++++----------- 1 file changed, 17 insertions(+), 18 deletions(-) (limited to 'schist_desktop_gui/src/gui/components') diff --git a/schist_desktop_gui/src/gui/components/buckets_view.rs b/schist_desktop_gui/src/gui/components/buckets_view.rs index 90189e6..7419b7d 100644 --- a/schist_desktop_gui/src/gui/components/buckets_view.rs +++ b/schist_desktop_gui/src/gui/components/buckets_view.rs @@ -20,8 +20,8 @@ pub struct BucketsView { #[derive(Clone, Debug)] pub enum Message { NavigationMessage(navigation::Message), - SelectNextBucket, - SelectPrevBucket, + SelectNext, + SelectPrev, SetBuckets(Vec), } @@ -85,6 +85,7 @@ impl<'a> Component<'a, Message, Action> for BucketsView { )); Action::None } + Message::NavigationMessage(message) => match self.navigation.update(message) { navigation::Action::SelectOption(bucket_navigation_entry) => { self.update_greeting(&bucket_navigation_entry.to_string()); @@ -92,24 +93,22 @@ impl<'a> Component<'a, Message, Action> for BucketsView { } navigation::Action::None => Action::None, }, - Message::SelectNextBucket => { - match self.navigation.update(navigation::Message::SelectNext) { - navigation::Action::SelectOption(bucket_navigation_entry) => { - self.update_greeting(&bucket_navigation_entry.to_string()); - Action::None - } - navigation::Action::None => Action::None, + + Message::SelectNext => match self.navigation.update(navigation::Message::SelectNext) { + navigation::Action::SelectOption(bucket_navigation_entry) => { + self.update_greeting(&bucket_navigation_entry.to_string()); + Action::None } - } - Message::SelectPrevBucket => { - match self.navigation.update(navigation::Message::SelectPrev) { - navigation::Action::SelectOption(bucket_navigation_entry) => { - self.update_greeting(&bucket_navigation_entry.to_string()); - Action::None - } - navigation::Action::None => Action::None, + navigation::Action::None => Action::None, + }, + + Message::SelectPrev => match self.navigation.update(navigation::Message::SelectPrev) { + navigation::Action::SelectOption(bucket_navigation_entry) => { + self.update_greeting(&bucket_navigation_entry.to_string()); + Action::None } - } + navigation::Action::None => Action::None, + }, } } } -- cgit v1.2.3