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

order firmware groups in the dialog and in the code #4087

Merged
merged 1 commit into from
Oct 14, 2024

Conversation

vadosnaprimer
Copy link
Contributor

there's some discrepancy between the 2 orders, because the GUI list relies on full names (of the groups) while in the code short names are used to add them to DB

there's some discrepancy between the 2 orders, because the GUI list relies on full names (of the groups) while in the code short names are used to add them to DB
@Morilli
Copy link
Collaborator

Morilli commented Oct 13, 2024

I like this. Being prompted for a firmware and then having to search through the (seemingly) unsorted list is very annoying.

@YoshiRulz
Copy link
Member

The sort call is fine, but why are you then also sorting in the source?

@vadosnaprimer
Copy link
Contributor Author

vadosnaprimer commented Oct 13, 2024

Because it's a nightmare to scroll through unsorted mess every time you need to add/edit something.

@YoshiRulz
Copy link
Member

Ctrl+F?

@vadosnaprimer
Copy link
Contributor Author

Dude seriously? You actually need it to be unsorted, and searching it by trying to remember what the short name is is absolutely the only allowed way?

@vadosnaprimer vadosnaprimer merged commit a08cb73 into master Oct 14, 2024
8 checks passed
@vadosnaprimer vadosnaprimer deleted the firmware-order branch October 14, 2024 06:56
@YoshiRulz
Copy link
Member

IDRC, but it would have been nice to keep the diff clean.

@vadosnaprimer
Copy link
Contributor Author

Why is clean diff better than clean code? It's reordered once and then it's always predictable where things are, but if the diff was the only thing that mattered, the code would always be a mess. That's a weird priority for something that's not just cosmetic but functional.

@YoshiRulz
Copy link
Member

It clobbers the blame, and .git-blame-ignore-revs (#3349) can't see through it:

$> echo a08cb73a30f2e0877fdbd89d1f59040d3418818a >.git-blame-ignore-revs
$> git blame src/BizHawk.Emulation.Common/Database/FirmwareDatabase.cs | grep -F a08cb73a3 | wc -l
274

@vadosnaprimer
Copy link
Contributor Author

vadosnaprimer commented Oct 14, 2024

Yeah sorry. Cleanest diff is no diff. Maybe commit description will help in such a dire situation.

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.

3 participants