Skip to content

Commit

Permalink
Release 3.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Feb 11, 2022
1 parent 3552f21 commit 2a6e433
Show file tree
Hide file tree
Showing 6 changed files with 497 additions and 4 deletions.
2 changes: 1 addition & 1 deletion data/com.github.alainm23.planner.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<binary>com.github.alainm23.planner</binary>
</provides>
​<releases>
<release version="3.0.3" date="2021-02-10">
<release version="3.0.4" date="2021-02-11">

This comment has been minimized.

Copy link
@gwutz

gwutz Feb 14, 2022

we have the year 2022 :)

<description>
<p>Planner 3.0 Beta1 is here...</p>
<ul>
Expand Down
3 changes: 2 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project (
'com.github.alainm23.planner',
'vala', 'c',
version: '3.0.3'
version: '3.0.4'
)

gnome = import ('gnome')
Expand Down Expand Up @@ -144,6 +144,7 @@ executable (
'src/Services/ActionManager.vala',
'src/Services/Badge.vala',

'src/Objects/v2.vala',
'src/Objects/BaseObject.vala',
'src/Objects/Project.vala',
'src/Objects/Label.vala',
Expand Down
8 changes: 6 additions & 2 deletions src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class Planner : Gtk.Application {

protected override void activate () {
if (int.parse (settings.get_string ("version")) <= 2) {
Util.get_default ().clear_database_query ();
Util.get_default ().reset_settings ();
}

if (lang != "") {
Expand Down Expand Up @@ -141,7 +141,11 @@ public class Planner : Gtk.Application {
}

if (settings.get_string ("version") != Constants.VERSION) {
settings.set_string ("version", Constants.VERSION);
if (int.parse (settings.get_string ("version")) <= 2) {
Util.get_default ().open_migrate_message ();
} else {
settings.set_string ("version", Constants.VERSION);
}
}
}

Expand Down
1 change: 1 addition & 0 deletions src/Dialogs/MessageDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ public class Dialogs.MessageDialog : Hdy.Window {
Gtk.ResponseType response = Gtk.ResponseType.CANCEL) {
button.clicked.connect (() => {
default_action (response);
hide_destroy ();
});
action_grid.add (button);
action_grid.show_all ();
Expand Down
67 changes: 67 additions & 0 deletions src/Objects/v2.vala
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
public class Objects.ProjectV2 : GLib.Object {
public int64 area_id { get; set; default = 0; }
public int64 parent_id { get; set; default = 0; }
public int64 id { get; set; default = 0; }
public string name { get; set; default = ""; }
public string note { get; set; default = ""; }
public string due_date { get; set; default = ""; }

public int color { get; set; default = 0; }
public int is_todoist { get; set; default = 0; }
public int inbox_project { get; set; default = 0; }
public int team_inbox { get; set; default = 0; }
public int item_order { get; set; default = 0; }
public int is_deleted { get; set; default = 0; }
public int is_archived { get; set; default = 0; }
public int is_favorite { get; set; default = 0; }
public int64 is_sync { get; set; default = 0; }
public int shared { get; set; default = 0; }
public int is_kanban { get; set; default = 0; }
public int show_completed { get; set; default = 0; }
public int sort_order { get; set; default = 0; }
public int collapsed { get; set; default = 0; }
}

public class Objects.SectionV2 : GLib.Object {
public int64 id { get; set; default = 0; }
public int64 project_id { get; set; default = 0; }
public int64 sync_id { get; set; default = 0; }
public string name { get; set; default = ""; }
public string note { get; set; default = ""; }
public int item_order { get; set; default = 0; }
public int collapsed { get; set; default = 1; }
public int is_todoist { get; set; default = 0; }
public int is_deleted { get; set; default = 0; }
public int is_archived { get; set; default = 0; }
public string date_archived { get; set; default = ""; }
public string date_added { get; set; default = new GLib.DateTime.now_local ().to_string (); }
}

public class Objects.ItemV2 : GLib.Object {
public int64 id { get; set; default = 0; }
public int64 project_id { get; set; default = 0; }
public int64 section_id { get; set; default = 0; }
public int64 user_id { get; set; default = 0; }
public int64 assigned_by_uid { get; set; default = 0; }
public int64 responsible_uid { get; set; default = 0; }
public int64 sync_id { get; set; default = 0; }
public int64 parent_id { get; set; default = 0; }
public int priority { get; set; default = 1; }
public int item_order { get; set; default = 0; }
public int day_order { get; set; default = -1; }
public int checked { get; set; default = 0; }
public int is_deleted { get; set; default = 0; }
public int is_todoist { get; set; default = 0; }
public string content { get; set; default = ""; }
public string note { get; set; default = ""; }
public string due_date { get; set; default = ""; }
public string due_timezone { get; set; default = ""; }
public string due_string { get; set; default = ""; }
public string due_lang { get; set; default = ""; }
public int due_is_recurring { get; set; default = 0; }
public int collapsed { get; set; default = 0; }

public string date_added { get; set; default = new GLib.DateTime.now_local ().to_string (); }
public string date_completed { get; set; default = ""; }
public string date_updated { get; set; default = new GLib.DateTime.now_local ().to_string (); }
}
Loading

0 comments on commit 2a6e433

Please sign in to comment.