-
Notifications
You must be signed in to change notification settings - Fork 239
Add setting to reset "previousTracksExpaned" each time a queue is opened #1509
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
base: redesign
Are you sure you want to change the base?
Conversation
|
Great, another test that will lead to failed PR run notifications 🙃 I'll try to slightly revise the working for the setting tomorrow before merging. |
I wish there was a way to reuse "images" of actions because, as you can see, I literally copied first job and simply replaced actual check. And it doesn't change much between different revisions
Only parts that add dbus and update flake.lock file, the remaining can be merged but there will be conflict because it also updates flake.lock file. My flake.lock is simply newer so theirs1 can be discarded cleanly. Footnotes
|
|
Alright. Yeah Docker-like layers to share would be neat. Maybe there's a way set multiple check results from a single action somehow? We won't be able to consolidate most other actions anyway since they run on different arches and OSs, but for the checks it really is more of just the same, and could all be added to the linux build action... And "theirs" is absolutely fine :) Regarding the PR, why didn't you put the overwrite at https://github.com/herobrine1st/finamp/blob/285ebcc2859d0c2863b4c52e68e42b24d57d568f/lib/components/PlayerScreen/queue_list.dart#L175? That seems like a much cleaner solution. That might be cleaner, simpler to understand, and more flexible? |
Because tunnelvision :-) It could be worse - the first variant used "whenComplete", and I'd send that if I didn't stumble on codegen I like your thoughts. My use case is just "wow antistress" since it has very satisfying close animation and when it scrolls past previous tracks instead of closing it's hurting.. again, tunnelvision :P but always opening is probably good for.. desktops! At least while there's no dedicated desktop UI UPD: I probably know why I tunnelvisioned. I didn't see remembering that header is expanded as feature until I opened the code and saw that it is an actual value in settings DTO, and thus a feature, not a bug. |
285ebcc to
fedebf8
Compare
|
So it looks like this Regarding this:
It's not viable here because it is a callback, so overriding the value where it currently is is the most clean as It can also be done here: finamp/lib/components/PlayerScreen/queue_list.dart Lines 103 to 118 in fedebf8
But then it is violation of responsibility I think, because it changes application state while initState is for Widget state I guess |
|
I honestly wouldn't mind having it in The dropdown looks fine, thanks! I'll change the wording to be a bit less technical. |
|
I feel like initState makes the most sense, because the widget is what actually uses the value, and this is basically just widget state we're persisting. If the queue was embeded in the player screen, as an example, we'd still want this code to run as the queue loads, and initState would do that. |

Changes
Screenshot
Todo before merging
..writeByte(137)to..writeByte(138)is okay.Related Issues
Not related to any issues