From dfa7a3b854cf5cc655c0364ab04225ce35a7194c Mon Sep 17 00:00:00 2001 From: Brian Pratt Date: Sat, 21 Dec 2024 11:01:24 -0800 Subject: [PATCH] While working on a different branch, I noticed that the "Back" button in the import peptide search dialog isn't properly disable if you navigate back to the first page of the wizard (tries to take you to page -1) --- .../Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs b/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs index 346dc039fe..555711e309 100644 --- a/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs +++ b/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs @@ -1152,6 +1152,10 @@ private void UpdateButtons() btnBack.Hide(); btnEarlyFinish.Location = btnBack.Location; } + else if (CurrentPage == Pages.spectra_page) // No "back" from page zero + { + btnBack.Hide(); + } else if (!btnBack.Visible) { btnEarlyFinish.Left = btnBack.Left - btnBack.Width - 6;