diff --git a/core/Services/CalDAV/Backend.vala b/core/Services/CalDAV/Backend.vala
index 43d862cac..b876837c0 100644
--- a/core/Services/CalDAV/Backend.vala
+++ b/core/Services/CalDAV/Backend.vala
@@ -29,4 +29,4 @@ public class Services.CalDAV.Backend {
return "";
}
-}
\ No newline at end of file
+}
diff --git a/core/Services/CalDAV/Constants.vala b/core/Services/CalDAV/Constants.vala
index af40ff858..ccde0071a 100644
--- a/core/Services/CalDAV/Constants.vala
+++ b/core/Services/CalDAV/Constants.vala
@@ -28,4 +28,4 @@ public class Services.CalDAV.Constants {
""";
-}
\ No newline at end of file
+}
diff --git a/core/Services/CalDAV/Core.vala b/core/Services/CalDAV/Core.vala
index 60c140552..c81e9be74 100644
--- a/core/Services/CalDAV/Core.vala
+++ b/core/Services/CalDAV/Core.vala
@@ -1101,4 +1101,4 @@ public class Services.CalDAV.Core : GLib.Object {
print (fuction + "\n");
print (data + "\n");
}
-}
\ No newline at end of file
+}
diff --git a/core/Services/Database.vala b/core/Services/Database.vala
index b552170b1..853b3d3e4 100644
--- a/core/Services/Database.vala
+++ b/core/Services/Database.vala
@@ -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,
@@ -1833,7 +1816,7 @@ public class Services.Database : GLib.Object {
break;
}
}
-
+
return return_value;
}
}
diff --git a/core/Widgets/SectionPicker/SectionPicker.vala b/core/Widgets/SectionPicker/SectionPicker.vala
index e0c651e86..ecf5da0d5 100644
--- a/core/Widgets/SectionPicker/SectionPicker.vala
+++ b/core/Widgets/SectionPicker/SectionPicker.vala
@@ -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);
}
-}
\ No newline at end of file
+}
diff --git a/data/io.github.alainm23.planify.appdata.xml.in.in b/data/io.github.alainm23.planify.appdata.xml.in.in
index f8f7dc375..99b84c6e3 100644
--- a/data/io.github.alainm23.planify.appdata.xml.in.in
+++ b/data/io.github.alainm23.planify.appdata.xml.in.in
@@ -67,6 +67,21 @@
https://www.patreon.com/alainm23
@appid@.desktop
+
+
+
+ - Now you can sort tasks in the Today view.
+ - We've added a new detailed task view on the sidebar when opening a task in Board view.
+ - We've introduced the ability to delete completed tasks.
+ - You can now use the Ctrl key when creating a task to continue adding.
+ - We've fixed a bug when moving tasks between projects and sections.
+ - We've addressed an animation bug when adding subtasks.
+ - Brazilian Portuguese translation has been updated, thanks to @Penfore.
+ - Spanish translation has been updated, thanks to @d0vi.
+
+
+
+
diff --git a/meson.build b/meson.build
index 635b3ea5a..c2efd62de 100644
--- a/meson.build
+++ b/meson.build
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
- version: '4.5.12'
+ version: '4.6'
)
gnome = import('gnome')
diff --git a/src/Dialogs/WhatsNew.vala b/src/Dialogs/WhatsNew.vala
index 0a0d0b7b6..63eefbdd7 100644
--- a/src/Dialogs/WhatsNew.vala
+++ b/src/Dialogs/WhatsNew.vala
@@ -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));
diff --git a/src/Layouts/ItemSidebarView.vala b/src/Layouts/ItemSidebarView.vala
index 57b600706..494bf0580 100644
--- a/src/Layouts/ItemSidebarView.vala
+++ b/src/Layouts/ItemSidebarView.vala
@@ -394,7 +394,7 @@ public class Layouts.ItemSidebarView : Adw.Bin {
}
public void update_due (GLib.DateTime? datetime) {
- if (item == null) {
+ if (item == null) {
return;
}
diff --git a/src/Views/Project/Project.vala b/src/Views/Project/Project.vala
index 7e43edf12..7a2cc8ca7 100644
--- a/src/Views/Project/Project.vala
+++ b/src/Views/Project/Project.vala
@@ -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");
@@ -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 ();
});