Add projects to Recent files in GTK

Now, when a Devede project is opened or saved, it is added to the list
of Recent files, thus being shown there when choosing to open a project.
This commit is contained in:
Sergio Costas 2019-01-02 23:25:45 +01:00
parent 64a0da4504
commit 8719778d22
2 changed files with 12 additions and 7 deletions

View file

@ -33,11 +33,9 @@ class opensave_window:
builder.set_translation_domain(self.config.gettext_domain)
if self.save:
builder.add_from_file(os.path.join(
self.config.glade, "wsave_project.ui"))
builder.add_from_file(os.path.join(self.config.glade, "wsave_project.ui"))
else:
builder.add_from_file(os.path.join(
self.config.glade, "wopen_project.ui"))
builder.add_from_file(os.path.join(self.config.glade, "wopen_project.ui"))
builder.connect_signals(self)
w_window = builder.get_object("data_project")
if current_file is not None: