mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-06-17 03:50:03 +02:00
gui/src/SearchWindow.cpp: implement "Cancel" button. stopping the search operation.
This commit is contained in:
parent
7c2545cdc2
commit
1cb6ddabd6
1 changed files with 5 additions and 2 deletions
|
|
@ -186,6 +186,7 @@ void SearchWindow::onResult(const struct libeosio::ec_keypair* key, const struct
|
|||
void SearchWindow::search()
|
||||
{
|
||||
if (m_worker.isRunning()) {
|
||||
m_ksearch.abort();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -247,12 +248,13 @@ void SearchWindow::langFileAdd()
|
|||
|
||||
void SearchWindow::searchStarted()
|
||||
{
|
||||
m_btn_exec.setText("Cancel");
|
||||
|
||||
m_txt_search.setEnabled(false);
|
||||
m_txt_search.setHidden(true);
|
||||
m_dict_lang.setEnabled(false);
|
||||
m_dict_file.setEnabled(false);
|
||||
m_leet_cb.setEnabled(false);
|
||||
m_btn_exec.setEnabled(false);
|
||||
m_btn_clear.setEnabled(false);
|
||||
#ifdef EOSIOKEYGEN_HAVE_THREADS
|
||||
m_num_threads.setEnabled(false);
|
||||
|
|
@ -262,12 +264,13 @@ void SearchWindow::searchStarted()
|
|||
|
||||
void SearchWindow::searchFinished()
|
||||
{
|
||||
m_btn_exec.setText("Search");
|
||||
|
||||
m_txt_search.setEnabled(true);
|
||||
m_txt_search.setHidden(false);
|
||||
m_dict_lang.setEnabled(true);
|
||||
m_dict_file.setEnabled(true);
|
||||
m_leet_cb.setEnabled(true);
|
||||
m_btn_exec.setEnabled(true);
|
||||
m_btn_clear.setEnabled(true);
|
||||
#ifdef EOSIOKEYGEN_HAVE_THREADS
|
||||
m_num_threads.setEnabled(true);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue