mirror of
https://github.com/feather-wallet/feather.git
synced 2025-03-12 09:37:47 +00:00
WalletInfoDialog: add cache file
This commit is contained in:
parent
1e30b1f4a1
commit
2d1c8d722a
2 changed files with 42 additions and 10 deletions
|
@ -19,11 +19,22 @@ WalletInfoDialog::WalletInfoDialog(QSharedPointer<AppContext> ctx, QWidget *pare
|
|||
ui->label_netType->setText(Utils::QtEnumToString(m_ctx->wallet->nettype()));
|
||||
ui->label_seedType->setText(m_ctx->wallet->getCacheAttribute("feather.seed").isEmpty() ? "25 word" : "14 word");
|
||||
ui->label_viewOnly->setText(m_ctx->wallet->viewOnly() ? "True" : "False");
|
||||
ui->label_path->setText(m_ctx->wallet->keysPath());
|
||||
ui->label_keysFile->setText(m_ctx->wallet->keysPath());
|
||||
ui->label_cacheFile->setText(m_ctx->wallet->cachePath());
|
||||
ui->label_cacheSize->setText(QString("%1 MB").arg(QString::number(cache.size() / 1e6, 'f', 2)));
|
||||
|
||||
connect(ui->btn_openWalletDir, &QPushButton::clicked, this, &WalletInfoDialog::openWalletDir);
|
||||
|
||||
ui->label_keysFileLabel->setHelpText("The \"keys file\" stores the wallet keys and wallet settings. "
|
||||
"It is encrypted with the wallet password (if set).\n\n"
|
||||
"Your funds will be irreversibly lost if you delete this file "
|
||||
"without having a backup of your mnemonic seed or private keys.");
|
||||
|
||||
ui->label_cacheFileLabel->setHelpText("The \"cache file\" stores transaction data, contacts, address labels, "
|
||||
"block hashes, the 14-word seed (if applicable), and other miscellaneous information. "
|
||||
"It is encrypted with the wallet password (if set).\n\n"
|
||||
"Warning: Transaction keys and the 14-word seed CANNOT be recovered if this file is deleted.");
|
||||
|
||||
this->adjustSize();
|
||||
}
|
||||
|
||||
|
|
|
@ -85,14 +85,31 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="4" column="0">
|
||||
<widget class="QLabel" name="label_5">
|
||||
<widget class="HelpLabel" name="label_keysFileLabel">
|
||||
<property name="text">
|
||||
<string>Path:</string>
|
||||
<string>Keys file:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1">
|
||||
<widget class="QLabel" name="label_path">
|
||||
<widget class="QLabel" name="label_keysFile">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<property name="text">
|
||||
<string>Cache size:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="6" column="1">
|
||||
<widget class="QLabel" name="label_cacheSize">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
|
@ -102,20 +119,17 @@
|
|||
</widget>
|
||||
</item>
|
||||
<item row="5" column="0">
|
||||
<widget class="QLabel" name="label_6">
|
||||
<widget class="HelpLabel" name="label_cacheFileLabel">
|
||||
<property name="text">
|
||||
<string>Cache size:</string>
|
||||
<string>Cache file:</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="5" column="1">
|
||||
<widget class="QLabel" name="label_cacheSize">
|
||||
<widget class="QLabel" name="label_cacheFile">
|
||||
<property name="text">
|
||||
<string>TextLabel</string>
|
||||
</property>
|
||||
<property name="textInteractionFlags">
|
||||
<set>Qt::LinksAccessibleByMouse|Qt::TextSelectableByMouse</set>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
|
@ -143,6 +157,13 @@
|
|||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
<class>HelpLabel</class>
|
||||
<extends>QLabel</extends>
|
||||
<header>components.h</header>
|
||||
</customwidget>
|
||||
</customwidgets>
|
||||
<resources/>
|
||||
<connections>
|
||||
<connection>
|
||||
|
|
Loading…
Reference in a new issue