diff --git a/data/io.github.leolost2605.gradebook.metainfo.xml b/data/io.github.leolost2605.gradebook.metainfo.xml index f4e718b..635195b 100644 --- a/data/io.github.leolost2605.gradebook.metainfo.xml +++ b/data/io.github.leolost2605.gradebook.metainfo.xml @@ -10,8 +10,15 @@

- A simple tool to keep track of your grades! It supports numerical grading systems as well as percentage grades. + Gradebook is a simple tool that helps you keep track of your grades. This way you always know how you are doing in your courses.

+

Features:

+
Leonhard Kargl diff --git a/src/application.vala b/src/application.vala index e74e118..7ba6a0c 100644 --- a/src/application.vala +++ b/src/application.vala @@ -10,7 +10,6 @@ public class MyApp : Adw.Application { construct { ActionEntry[] action_entries = { - { "test", this.on_test_action }, { "help", this.on_help_action }, { "about", this.on_about_action }, { "newsubject", this.on_newsubject_action}, @@ -18,13 +17,9 @@ public class MyApp : Adw.Application { this.add_action_entries (action_entries, this); } - public void on_test_action () { - print ("test_action"); - } - - public void on_help_action () { - Gtk.show_uri (main_window, "https://github.com/leolost2605/Gradebook/wiki", 0); + var uri_launcher = new Gtk.UriLauncher ("https://github.com/leolost2605/Gradebook/wiki"); + uri_launcher.launch.begin (main_window, null); } public void on_newsubject_action () { @@ -34,7 +29,7 @@ public class MyApp : Adw.Application { SubjectManager.get_default ().new_subject (dialog.name_entry_box.get_text (), dialog.get_categories ()); } dialog.destroy (); - return true; + return true; }); dialog.present (); } @@ -47,7 +42,7 @@ public class MyApp : Adw.Application { translator_credits = _("translator-credits"), application_name = _("Gradebook"), application_icon = "io.github.leolost2605.gradebook", - version = "1.1.1", + version = "1.2", license_type = GPL_3_0, website = "https://github.com/leolost2605/Gradebook", issue_url = "https://github.com/leolost2605/Gradebook/issues", diff --git a/src/subject-manager.vala b/src/subject-manager.vala index 0cb7fb6..2f8b1e2 100644 --- a/src/subject-manager.vala +++ b/src/subject-manager.vala @@ -44,7 +44,7 @@ public class SubjectManager : Object { public async void read_data () { yield read_data_legacy (); - + var keyfile = new KeyFile (); try { @@ -70,7 +70,6 @@ public class SubjectManager : Object { public async void write_data () { var keyfile = new KeyFile (); - var parser = new SubjectParser (); for (int i = 0; i < subjects.get_n_items (); i++) { var subject = (Subject) subjects.get_item (i); diff --git a/src/window.vala b/src/window.vala index 42f5d98..61d9010 100644 --- a/src/window.vala +++ b/src/window.vala @@ -71,10 +71,10 @@ public class Window : Adw.ApplicationWindow { navigation_sidebar.select_row (navigation_sidebar.get_row_at_index ((int) pos)); }); - subject_manager.read_data (); + subject_manager.read_data.begin (); close_request.connect (() => { - set_visible (false); + visible = false; subject_manager.write_data.begin (() => { destroy (); });