From: <sv...@op...> - 2024-08-03 16:50:33
|
Author: sagamusix Date: Sat Aug 3 18:50:26 2024 New Revision: 21322 URL: https://source.openmpt.org/browse/openmpt/?op=revision&rev=21322 Log: [Imp] General tab: Disable Remove button if current plugin slot is empty. Modified: trunk/OpenMPT/mptrack/View_gen.cpp Modified: trunk/OpenMPT/mptrack/View_gen.cpp ============================================================================== --- trunk/OpenMPT/mptrack/View_gen.cpp Sat Aug 3 18:17:02 2024 (r21321) +++ trunk/OpenMPT/mptrack/View_gen.cpp Sat Aug 3 18:50:26 2024 (r21322) @@ -456,6 +456,7 @@ GetDlgItem(IDC_MOVEFXSLOT)->EnableWindow((pPlugin) ? TRUE : FALSE); GetDlgItem(IDC_INSERTFXSLOT)->EnableWindow((pPlugin) ? TRUE : FALSE); GetDlgItem(IDC_CLONEPLUG)->EnableWindow((pPlugin) ? TRUE : FALSE); + GetDlgItem(IDC_DELPLUGIN)->EnableWindow((plugin.IsValidPlugin() || !plugin.Info.szLibraryName.empty() || !plugin.Info.szName.empty()) ? TRUE : FALSE); UpdateDryWetDisplay(); m_CbnSpecialMixProcessing.SetCurSel(static_cast<int>(plugin.GetMixMode())); |