mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Remove GUI's "Generate Coins" option from the menu.
CPU mining remains available via command line option [until/unless the community decides to remove that completely].
This commit is contained in:
parent
b37f09aa2e
commit
e93e5349cb
11 changed files with 3 additions and 75 deletions
16
ui.cpp
16
ui.cpp
|
|
@ -1094,12 +1094,6 @@ void CMainFrame::OnMenuFileExit(wxCommandEvent& event)
|
|||
Close(true);
|
||||
}
|
||||
|
||||
void CMainFrame::OnMenuOptionsGenerate(wxCommandEvent& event)
|
||||
{
|
||||
// Options->Generate Coins
|
||||
GenerateBitcoins(event.IsChecked());
|
||||
}
|
||||
|
||||
void CMainFrame::OnUpdateUIOptionsGenerate(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Check(fGenerateBitcoins);
|
||||
|
|
@ -1766,9 +1760,6 @@ void COptionsDialog::OnButtonApply(wxCommandEvent& event)
|
|||
nLimitProcessors = m_spinCtrlLimitProcessors->GetValue();
|
||||
walletdb.WriteSetting("nLimitProcessors", nLimitProcessors);
|
||||
}
|
||||
if (fGenerateBitcoins && (fLimitProcessors ? nLimitProcessors : INT_MAX) > nPrevMaxProc)
|
||||
GenerateBitcoins(fGenerateBitcoins);
|
||||
|
||||
if (fTmpStartOnSystemStartup != m_checkBoxStartOnSystemStartup->GetValue())
|
||||
{
|
||||
fTmpStartOnSystemStartup = m_checkBoxStartOnSystemStartup->GetValue();
|
||||
|
|
@ -2614,7 +2605,6 @@ BEGIN_EVENT_TABLE(CMyTaskBarIcon, wxTaskBarIcon)
|
|||
EVT_TASKBAR_LEFT_DCLICK(CMyTaskBarIcon::OnLeftButtonDClick)
|
||||
EVT_MENU(ID_TASKBAR_RESTORE, CMyTaskBarIcon::OnMenuRestore)
|
||||
EVT_MENU(ID_TASKBAR_OPTIONS, CMyTaskBarIcon::OnMenuOptions)
|
||||
EVT_MENU(ID_TASKBAR_GENERATE, CMyTaskBarIcon::OnMenuGenerate)
|
||||
EVT_UPDATE_UI(ID_TASKBAR_GENERATE, CMyTaskBarIcon::OnUpdateUIGenerate)
|
||||
EVT_MENU(ID_TASKBAR_EXIT, CMyTaskBarIcon::OnMenuExit)
|
||||
END_EVENT_TABLE()
|
||||
|
|
@ -2681,11 +2671,6 @@ void CMyTaskBarIcon::Restore()
|
|||
pframeMain->Raise();
|
||||
}
|
||||
|
||||
void CMyTaskBarIcon::OnMenuGenerate(wxCommandEvent& event)
|
||||
{
|
||||
GenerateBitcoins(event.IsChecked());
|
||||
}
|
||||
|
||||
void CMyTaskBarIcon::OnUpdateUIGenerate(wxUpdateUIEvent& event)
|
||||
{
|
||||
event.Check(fGenerateBitcoins);
|
||||
|
|
@ -2707,7 +2692,6 @@ wxMenu* CMyTaskBarIcon::CreatePopupMenu()
|
|||
wxMenu* pmenu = new wxMenu;
|
||||
pmenu->Append(ID_TASKBAR_RESTORE, _("&Open Bitcoin"));
|
||||
pmenu->Append(ID_TASKBAR_OPTIONS, _("O&ptions..."));
|
||||
pmenu->AppendCheckItem(ID_TASKBAR_GENERATE, _("&Generate Coins"))->Check(fGenerateBitcoins);
|
||||
#ifndef __WXMAC_OSX__ // Mac has built-in quit menu
|
||||
pmenu->AppendSeparator();
|
||||
pmenu->Append(ID_TASKBAR_EXIT, _("E&xit"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue