Skip to content

Commit

Permalink
Release 4.6
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Apr 15, 2024
1 parent 62e3f20 commit cd5b53a
Show file tree
Hide file tree
Showing 10 changed files with 35 additions and 34 deletions.
2 changes: 1 addition & 1 deletion core/Services/CalDAV/Backend.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public class Services.CalDAV.Backend {

return "";
}
}
}
2 changes: 1 addition & 1 deletion core/Services/CalDAV/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ public class Services.CalDAV.Constants {
</d:prop>
</d:propfind>
""";
}
}
2 changes: 1 addition & 1 deletion core/Services/CalDAV/Core.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1101,4 +1101,4 @@ public class Services.CalDAV.Core : GLib.Object {
print (fuction + "\n");
print (data + "\n");
}
}
}
19 changes: 1 addition & 18 deletions core/Services/Database.vala
Original file line number Diff line number Diff line change
Expand Up @@ -220,23 +220,6 @@ public class Services.Database : GLib.Object {
warning (errormsg);
}

sql = """
CREATE TABLE IF NOT EXISTS Sources (
id TEXT PRIMARY KEY,
type TEXT,
username TEXT,
email TEXT,
credentials TEXT,
sync_token TEXT,
last_sync TEXT,
inbox_project_id TEXT
);
""";

if (db.exec (sql, null, out errormsg) != Sqlite.OK) {
warning (errormsg);
}

sql = """
CREATE TABLE IF NOT EXISTS Projects (
id TEXT PRIMARY KEY,
Expand Down Expand Up @@ -1833,7 +1816,7 @@ public class Services.Database : GLib.Object {
break;
}
}

return return_value;
}
}
Expand Down
2 changes: 1 addition & 1 deletion core/Widgets/SectionPicker/SectionPicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,4 @@ public class Widgets.SectionPicker.SectionPicker : Gtk.Popover {
public void set_section (string section_id) {
Services.EventBus.get_default ().section_picker_changed (section_id);
}
}
}
15 changes: 15 additions & 0 deletions data/io.github.alainm23.planify.appdata.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,21 @@
<url type="donation">https://www.patreon.com/alainm23</url>
<launchable type="desktop-id">@[email protected]</launchable>
<releases>
<release version="4.6" date="2024-04-15">
<description translate="no">
<ul>
<li>Now you can sort tasks in the Today view.</li>
<li>We've added a new detailed task view on the sidebar when opening a task in Board view.</li>
<li>We've introduced the ability to delete completed tasks.</li>
<li>You can now use the Ctrl key when creating a task to continue adding.</li>
<li>We've fixed a bug when moving tasks between projects and sections.</li>
<li>We've addressed an animation bug when adding subtasks.</li>
<li>Brazilian Portuguese translation has been updated, thanks to @Penfore.</li>
<li>Spanish translation has been updated, thanks to @d0vi.</li>
</ul>
</description>
</release>

<release version="4.5.12" date="2024-03-29">
<description translate="no">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
version: '4.5.12'
version: '4.6'
)

gnome = import('gnome')
Expand Down
18 changes: 10 additions & 8 deletions src/Dialogs/WhatsNew.vala
Original file line number Diff line number Diff line change
Expand Up @@ -114,18 +114,20 @@ public class Dialogs.WhatsNew : Adw.Window {
}
return false;
});

add_feature (_("New Filters"), _("New filters available in Quick Add."));
add_feature (_("Repeating"), _("All your repeating to-dos in one, convenient place (finally!)."));
add_feature (_("Tomorrow"), _("A nice focused list to plan tomorrow, today."));
add_feature (_("Anytime"), _("All your unlabel to-dos in one place."));
add_feature (_("Search by Sections"), _("Quick Find now supports section searching."));

add_feature (_("Now you can sort tasks in the Today view."), null);
add_feature (_("We've added a new detailed task view on the sidebar when opening a task in Board view."), null);
add_feature (_("We've introduced the ability to delete completed tasks."), null);
add_feature (_("You can now use the Ctrl key when creating a task to continue adding."), null);
}

public void add_feature (string title, string description, Adw.NavigationPage? page = null) {
public void add_feature (string title, string? description, Adw.NavigationPage? page = null) {
var row = new Adw.ActionRow ();
row.title = title;
row.subtitle = description;

if (description != null) {
row.subtitle = description;
}

if (page != null) {
row.add_suffix (generate_icon ("pan-end-symbolic", 16));
Expand Down
2 changes: 1 addition & 1 deletion src/Layouts/ItemSidebarView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public class Layouts.ItemSidebarView : Adw.Bin {
}

public void update_due (GLib.DateTime? datetime) {
if (item == null) {
if (item == null) {
return;
}

Expand Down
5 changes: 3 additions & 2 deletions src/Views/Project/Project.vala
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ public class Views.Project : Adw.Bin {
);

delete_all_completed = new Widgets.ContextMenu.MenuItem (_("Delete All Completed Tasks") ,"user-trash-symbolic") {
visible = false
visible = project.show_completed && Services.Database.get_default ().get_items_checked_by_project (project).size > 0
};
delete_all_completed.add_css_class ("menu-item-danger");

Expand Down Expand Up @@ -448,7 +448,8 @@ public class Views.Project : Adw.Bin {
project.update_local ();

show_completed_item.title = project.show_completed ? _("Hide Completed Tasks") : _("Show Completed Tasks");
delete_all_completed.visible = project.show_completed;
delete_all_completed.visible = project.show_completed &&
Services.Database.get_default ().get_items_checked_by_project (project).size > 0;
check_default_view ();
});

Expand Down

0 comments on commit cd5b53a

Please sign in to comment.