Skip to content

Commit 90f9fc2

Browse files
committed
qt: Save QSplitter state in QSettings
1 parent 762cbd2 commit 90f9fc2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/qt/rpcconsole.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,8 @@ RPCConsole::RPCConsole(interfaces::Node& node, const PlatformStyle *_platformSty
457457
move(QGuiApplication::primaryScreen()->availableGeometry().center() - frameGeometry().center());
458458
}
459459

460+
ui->splitter->restoreState(settings.value("PeersTabSplitterSizes").toByteArray());
461+
460462
QChar nonbreaking_hyphen(8209);
461463
ui->dataDir->setToolTip(ui->dataDir->toolTip().arg(QString(nonbreaking_hyphen) + "datadir"));
462464
ui->blocksDir->setToolTip(ui->blocksDir->toolTip().arg(QString(nonbreaking_hyphen) + "blocksdir"));
@@ -502,6 +504,7 @@ RPCConsole::~RPCConsole()
502504
{
503505
QSettings settings;
504506
settings.setValue("RPCConsoleWindowGeometry", saveGeometry());
507+
settings.setValue("PeersTabSplitterSizes", ui->splitter->saveState());
505508
m_node.rpcUnsetTimerInterface(rpcTimerInterface);
506509
delete rpcTimerInterface;
507510
delete ui;

0 commit comments

Comments
 (0)