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();
}
</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>
</widget>
</item>
- <item row="5" column="0">
+ <item row="6" column="0">
<widget class="QLabel" name="label_6">
<property name="text">
<string>Cache size:</string>
</property>
</widget>
</item>
- <item row="5" column="1">
+ <item row="6" column="1">
<widget class="QLabel" name="label_cacheSize">
<property name="text">
<string>TextLabel</string>
</property>
</widget>
</item>
+ <item row="5" column="0">
+ <widget class="HelpLabel" name="label_cacheFileLabel">
+ <property name="text">
+ <string>Cache file:</string>
+ </property>
+ </widget>
+ </item>
+ <item row="5" column="1">
+ <widget class="QLabel" name="label_cacheFile">
+ <property name="text">
+ <string>TextLabel</string>
+ </property>
+ </widget>
+ </item>
</layout>
</item>
<item>
</item>
</layout>
</widget>
+ <customwidgets>
+ <customwidget>
+ <class>HelpLabel</class>
+ <extends>QLabel</extends>
+ <header>components.h</header>
+ </customwidget>
+ </customwidgets>
<resources/>
<connections>
<connection>