-
Notifications
You must be signed in to change notification settings - Fork 9
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
Replace toast with modal #358
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #358 +/- ##
======================================
- Coverage 32% 28% -4%
======================================
Files 37 37
Lines 4355 4266 -89
======================================
- Hits 1393 1184 -209
- Misses 2962 3082 +120
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
When you make a change then try to exit, you get a dialog with a "Save" option.
Or, when you return to the app, pop-up the save dialog.... |
Unrelated to this PR but could fix at the same: We should arguably align the button text "Show Hardware Details" and the dialog Title "About Connected Hardware" Also, as the button pops up a dialog, I think it's text should have "..." at the end. |
The version/details dialog looks good. The contents of the hardware details looks good. I don't think there are any other uses/cases, no? |
Add the behaviour where ESCAPE key does close/cancel, like the connect dialog, and returns you to the app |
It still has the "exit two times logic". If I edit, try to exit, "return to app", (forget) then try to exit - then it exits directly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have made chanegs I saw needed
src/modal_handler.rs
Outdated
|
||
#[derive(Clone, Debug)] | ||
pub enum ModalMessage { | ||
ShowModal, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this ever used?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed it
Closes #353