on new note, make it 'loaded'

This commit is contained in:
2025-11-24 21:27:05 +01:00
parent aaeb793703
commit c62a9c7610

View File

@@ -153,6 +153,7 @@ public:
public: public:
void load(); void load();
void save(); void save();
void setLoaded();
public: public:
YellowNote(YellowNotes *notes, const std::string &filename); YellowNote(YellowNotes *notes, const std::string &filename);
@@ -855,6 +856,7 @@ void YellowNotes::newNote(void *sender)
YellowNote *note = new YellowNote(this, p.string()); YellowNote *note = new YellowNote(this, p.string());
_notes.push_back(note); _notes.push_back(note);
note->setLoaded();
note->show(); note->show();
note->save(); note->save();
} }
@@ -1226,6 +1228,15 @@ void YellowNote::showNote(GtkWidget *sender)
show(); show();
} }
void YellowNote::setLoaded()
{
_pos_loaded = true;
_hidden_loaded = true;
_title_only_loaded = true;
_size_loaded = true;
_in_transaction = false;
}
void YellowNote::show() void YellowNote::show()
{ {
gtk_widget_show_all(_note_widget); gtk_widget_show_all(_note_widget);