Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce SwitchCurrentTabToPrev/SwitchCurrentTabToNext actions #854

Closed
wants to merge 2 commits into from

Conversation

agjini
Copy link
Contributor

@agjini agjini commented Dec 19, 2024

No description provided.

@@ -22,6 +22,7 @@ use rio_backend::sugarloaf::{font::SugarloafFont, Object, SugarloafErrors};
use std::borrow::Cow;
use std::collections::HashMap;
use std::error::Error;
use std::os::fd::IntoRawFd;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason to add this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not at all. I've removed it

@@ -839,6 +840,32 @@ impl<T: EventListener + Clone + std::marker::Send + 'static> ContextManager<T> {
self.current_route = self.current().route_id;
}

#[inline]
pub fn move_current_to_prev(&mut self) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you add just one test to ensure the functionality?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have added two tests

@raphamorim
Copy link
Owner

Niiicee! thank you @agjini
left some comments 🙏

@raphamorim
Copy link
Owner

Nice! Merged your changes on 97236d2 and f2ef76c

Thank you!

@raphamorim raphamorim closed this Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants