From ff0ab9f83ff53a7300512b6fe5c1cb8ef32f615c Mon Sep 17 00:00:00 2001 From: Brian Pratt Date: Tue, 21 Jan 2025 10:59:29 -0800 Subject: [PATCH] The "Back" button in the import peptide search dialog wasn't properly disable if you navigated back to the first page of the wizard (tried to take you to page -1) not reported by any user --- .../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 7590dd02de..6bea2da109 100644 --- a/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs +++ b/pwiz_tools/Skyline/FileUI/PeptideSearch/ImportPeptideSearchDlg.cs @@ -1156,6 +1156,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;