[PR #568] [MERGED] Fix media combobox not updating #1046

Closed
opened 2026-01-29 16:25:05 +00:00 by claunia · 0 comments
Owner

📋 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: masterHead: combobox


📝 Commits (3)

  • 3bb041c Fix media combobox not updating
  • 8b5d8cc Merge pull request #1 from SabreTools/master
  • 5e8b182 Don'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.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/MPF/pull/568 **Author:** [@Deterous](https://github.com/Deterous) **Created:** 10/10/2023 **Status:** ✅ Merged **Merged:** 10/10/2023 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `combobox` --- ### 📝 Commits (3) - [`3bb041c`](https://github.com/SabreTools/MPF/commit/3bb041c33fbf4c0760129b55b332853a7eeb3d95) Fix media combobox not updating - [`8b5d8cc`](https://github.com/SabreTools/MPF/commit/8b5d8ccba52df4a8f0809d0d32fafed284f27ec4) Merge pull request #1 from SabreTools/master - [`5e8b182`](https://github.com/SabreTools/MPF/commit/5e8b182392cf41ad85d22dad8ab5782f4c025059) Don't call SetCurrentDiscType rather than clear the variable ### 📊 Changes **1 file changed** (+0 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `MPF.Core/UI/ViewModels/MainViewModel.cs` (+0 -3) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:25:05 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#1046