Skip to content

Commit

Permalink
make Find icon act like show/hide icon - modified from BeckyEbook
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinhendricks committed Oct 20, 2020
1 parent f643dd9 commit 2076bad
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/MainUI/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1652,6 +1652,10 @@ void MainWindow::Exit()

void MainWindow::Find()
{
if (m_FindReplace->isVisible()) {
m_FindReplace->hide();
return;
}
SaveTabData();
m_FindReplace->SetUpFindText();
m_FindReplace->show();
Expand Down

0 comments on commit 2076bad

Please sign in to comment.