From fc35a3079b43b8c4598628ffb3ad60964eada72a Mon Sep 17 00:00:00 2001 From: Ozbolt Menegatti Date: Mon, 30 Mar 2020 20:28:43 +0200 Subject: [PATCH] now first update must have a message, so noreset is chosen --- src/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index 533e7d9..9573a5d 100644 --- a/src/main.py +++ b/src/main.py @@ -3,6 +3,7 @@ from model import Model from view import View from update import update from export import export_to_xml +from message.simple_messages import Reset model = Model() @@ -12,11 +13,11 @@ def plugin_init(div, _entry, editable): view = View(div) update.set_model(model) update.set_view(view) - + def plugin_render(_div, entry): model.import_xml(entry.content) - update.update_model() + update.update_model(Reset()) def plugin_save(_div):