|
|
@ -28,6 +28,7 @@ |
|
|
|
#include <wallet/wallet.h> |
|
|
|
#include <wallet/wallet.h> |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#include <QDesktopWidget> |
|
|
|
#include <QKeyEvent> |
|
|
|
#include <QKeyEvent> |
|
|
|
#include <QMenu> |
|
|
|
#include <QMenu> |
|
|
|
#include <QMessageBox> |
|
|
|
#include <QMessageBox> |
|
|
@ -428,7 +429,11 @@ RPCConsole::RPCConsole(const PlatformStyle *_platformStyle, QWidget *parent) : |
|
|
|
consoleFontSize(0) |
|
|
|
consoleFontSize(0) |
|
|
|
{ |
|
|
|
{ |
|
|
|
ui->setupUi(this); |
|
|
|
ui->setupUi(this); |
|
|
|
GUIUtil::restoreWindowGeometry("nRPCConsoleWindow", this->size(), this); |
|
|
|
QSettings settings; |
|
|
|
|
|
|
|
if (!restoreGeometry(settings.value("RPCConsoleWindowGeometry").toByteArray())) { |
|
|
|
|
|
|
|
// Restore failed (perhaps missing setting), center the window
|
|
|
|
|
|
|
|
move(QApplication::desktop()->availableGeometry().center() - frameGeometry().center()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ui->openDebugLogfileButton->setToolTip(ui->openDebugLogfileButton->toolTip().arg(tr(PACKAGE_NAME))); |
|
|
|
ui->openDebugLogfileButton->setToolTip(ui->openDebugLogfileButton->toolTip().arg(tr(PACKAGE_NAME))); |
|
|
|
|
|
|
|
|
|
|
@ -466,14 +471,14 @@ RPCConsole::RPCConsole(const PlatformStyle *_platformStyle, QWidget *parent) : |
|
|
|
ui->detailWidget->hide(); |
|
|
|
ui->detailWidget->hide(); |
|
|
|
ui->peerHeading->setText(tr("Select a peer to view detailed information.")); |
|
|
|
ui->peerHeading->setText(tr("Select a peer to view detailed information.")); |
|
|
|
|
|
|
|
|
|
|
|
QSettings settings; |
|
|
|
|
|
|
|
consoleFontSize = settings.value(fontSizeSettingsKey, QFontInfo(QFont()).pointSize()).toInt(); |
|
|
|
consoleFontSize = settings.value(fontSizeSettingsKey, QFontInfo(QFont()).pointSize()).toInt(); |
|
|
|
clear(); |
|
|
|
clear(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
RPCConsole::~RPCConsole() |
|
|
|
RPCConsole::~RPCConsole() |
|
|
|
{ |
|
|
|
{ |
|
|
|
GUIUtil::saveWindowGeometry("nRPCConsoleWindow", this); |
|
|
|
QSettings settings; |
|
|
|
|
|
|
|
settings.setValue("RPCConsoleWindowGeometry", saveGeometry()); |
|
|
|
RPCUnsetTimerInterface(rpcTimerInterface); |
|
|
|
RPCUnsetTimerInterface(rpcTimerInterface); |
|
|
|
delete rpcTimerInterface; |
|
|
|
delete rpcTimerInterface; |
|
|
|
delete ui; |
|
|
|
delete ui; |
|
|
|