mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-18 22:35:39 +01:00
refactor: Simplify connection syntax
This commit is contained in:
@@ -361,9 +361,7 @@ void BitcoinApplication::initializeResult(bool success)
|
||||
if (paymentServer) {
|
||||
connect(paymentServer, &PaymentServer::receivedPaymentRequest, window, &BitcoinGUI::handlePaymentRequest);
|
||||
connect(window, &BitcoinGUI::receivedURI, paymentServer, &PaymentServer::handleURIOrFile);
|
||||
connect(paymentServer, &PaymentServer::message, [this](const QString& title, const QString& message, unsigned int style) {
|
||||
window->message(title, message, style);
|
||||
});
|
||||
connect(paymentServer, &PaymentServer::message, window, &BitcoinGUI::message);
|
||||
QTimer::singleShot(100, paymentServer, &PaymentServer::uiReady);
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user