-
Notifications
You must be signed in to change notification settings - Fork 30
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
Fixed updating of start stop button based on the actions on files in process tile #48
base: master
Are you sure you want to change the base?
Conversation
Heyy @techno-disaster can you look into this pr👀 |
), | ||
TextButton( | ||
onPressed: () { | ||
StartStopButton(); |
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.
what's this for
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.
It is for rebuilding the StartStopButton widget
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.
should work if DashboardState or ProcessState change tho
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.
Can you elaborate on what you are trying to say, I am not able to get you
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.
StartStopButton rebuilds on DashboardBloc and ProcessBloc updates. https://github.com/CCExtractor/ccextractorfluttergui/pull/48/files#diff-1bd4c76f5c4b0d8d3bd1f7757702ba2711e87599cdbd057b4ecc901013279726R19.
Also unsure how calling StartStopButton() rebuilds the original button 🤔
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 had checked it is not working without StartStopButton();
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 there any changes needed to be done👀
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.
Hm, I need to test this myself, not really free atm
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.
ok sure
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.
updating any of the following should rebuild it automatically (unless there's some error in the login in StartStopButton.
- ProcessState
- DashboardState
- SettingsState
Heyy @techno-disaster , do I need to make any changes or anything for this pr? |
Heyy @techno-disaster , it's been long time since I made this pr. Can you look into this once? |
closes #47
working.mp4