mirror of
https://github.com/SabreTools/MPF.git
synced 2026-02-03 21:29:27 +00:00
[PR #568] [MERGED] Fix media combobox not updating #1046
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/SabreTools/MPF/pull/568
Author: @Deterous
Created: 10/10/2023
Status: ✅ Merged
Merged: 10/10/2023
Merged by: @mnadareski
Base:
master← Head:combobox📝 Commits (3)
3bb041cFix media combobox not updating8b5d8ccMerge pull request #1 from SabreTools/master5e8b182Don't call SetCurrentDiscType rather than clear the variable📊 Changes
1 file changed (+0 additions, -3 deletions)
View changed files
📝
MPF.Core/UI/ViewModels/MainViewModel.cs(+0 -3)📄 Description
The media type combo box was not updating on user selection, due to the detected media type being chosen first.
I have solved this by clearing the detected media type variable once it has been used.
If you want to preserve the variable, then you can fix this a cleaner way, however pressing 'Scan for discs' does still revert the combo box to the detected media, so this change does do as expected.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.