]> Nutra Git (v2) - gamesguru/feather.git/commitdiff
WalletInfoDialog: add cache file
authortobtoht <thotbot@protonmail.com>
Sun, 4 Jul 2021 01:33:10 +0000 (03:33 +0200)
committertobtoht <thotbot@protonmail.com>
Sun, 4 Jul 2021 01:33:10 +0000 (03:33 +0200)
src/dialog/WalletInfoDialog.cpp
src/dialog/WalletInfoDialog.ui

index b84d1db935cbc2e41720cbabfe12523d61be3c5f..fac1766b692c43654875db91955388e4bd7f0d41 100644 (file)
@@ -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();
 }
 
index 8b1f0d54bd35b8b6b940d66d9086a3b3c36d1636..9fd06224019de5b86c7457c2437837542a46e0fe 100644 (file)
       </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>