diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp
index e9b03725..84eba76d 100644
--- a/src/MainWindow.cpp
+++ b/src/MainWindow.cpp
@@ -251,6 +251,12 @@ void MainWindow::initWidgets() {
ui->tabWidget->setCurrentIndex(this->findTab("Send"));
});
+ // [Notes]
+ ui->notes->setPlainText(m_wallet->getCacheAttribute("wallet.notes"));
+ connect(ui->notes, &QPlainTextEdit::textChanged, [this] {
+ m_wallet->setCacheAttribute("wallet.notes", ui->notes->toPlainText());
+ });
+
// [Plugins..]
for (auto* plugin : m_plugins) {
if (!plugin->hasParent()) {
@@ -339,6 +345,11 @@ void MainWindow::initMenu() {
m_tabShowHideMapper["Contacts"] = new ToggleTab(ui->tabContacts, "Contacts", "Contacts", ui->actionShow_Contacts, this);
m_tabShowHideSignalMapper->setMapping(ui->actionShow_Contacts, "Contacts");
+ // Show/Hide Notes
+ connect(ui->actionShow_Notes, &QAction::triggered, m_tabShowHideSignalMapper, QOverload<>::of(&QSignalMapper::map));
+ m_tabShowHideMapper["Notes"] = new ToggleTab(ui->tabNotes, "Notes", "Notes", ui->actionShow_Notes, this);
+ m_tabShowHideSignalMapper->setMapping(ui->actionShow_Notes, "Notes");
+
// Show/Hide Plugins..
for (const auto &plugin : m_plugins) {
if (plugin->parent() != "") {
diff --git a/src/MainWindow.ui b/src/MainWindow.ui
index f7c27dc8..89b539d7 100644
--- a/src/MainWindow.ui
+++ b/src/MainWindow.ui
@@ -169,6 +169,32 @@
+
+
+
+ :/assets/images/tab_notes.png:/assets/images/tab_notes.png
+
+
+ Notes
+
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+
+ 0
+
+ -
+
+
+
+
-
@@ -587,6 +613,7 @@
+
@@ -962,6 +989,11 @@
Show Contacts
+
+
+ Show Notes
+
+
diff --git a/src/assets.qrc b/src/assets.qrc
index 9f915240..b69574ca 100644
--- a/src/assets.qrc
+++ b/src/assets.qrc
@@ -88,6 +88,7 @@
assets/images/tab_contacts.png
assets/images/tab_history.png
assets/images/tab_home.png
+ assets/images/tab_notes.png
assets/images/tab_party.png
assets/images/tab_receive.png
assets/images/tab_send.png
diff --git a/src/assets/images/tab_notes.png b/src/assets/images/tab_notes.png
new file mode 100644
index 00000000..40e73a30
Binary files /dev/null and b/src/assets/images/tab_notes.png differ