Coins: disable sweep instead of hide when output unconfirmed

Suggested by moneroarbo
This commit is contained in:
tobtoht 2020-10-21 21:53:46 +02:00
parent 70f1846de6
commit 78eabc5ae7

View file

@ -111,10 +111,15 @@ void CoinsWidget::showContextMenu(const QPoint &point) {
if (!isSpent) { if (!isSpent) {
isFrozen ? menu->addAction(m_thawOutputAction) : menu->addAction(m_freezeOutputAction); isFrozen ? menu->addAction(m_thawOutputAction) : menu->addAction(m_freezeOutputAction);
}
if (!isFrozen && isUnlocked) {
menu->addAction(m_sweepOutputAction); menu->addAction(m_sweepOutputAction);
if (isFrozen || !isUnlocked) {
m_sweepOutputAction->setDisabled(true);
} else {
m_sweepOutputAction->setEnabled(true);
}
} }
menu->addAction(m_viewOutputAction); menu->addAction(m_viewOutputAction);
} }