Skip to content

Commit 7eb00ee

Browse files
committed
Fix #1124
1 parent 1919a96 commit 7eb00ee

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

data/io.github.alainm23.planify.appdata.xml.in.in

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
<description translatable="no">
7272
<ul>
7373
<li>Improved performance when using the Completed view.</li>
74+
<li>Added the option to close an open task with the ESC key.</li>
7475
<li>Added the option to delete a completed task from the context menu.</li>
7576
<li>The sync keyboard shortcut also syncs your Nextcloud account.</li>
7677
<li>Fixed error when viewing calendar event as a task in Nextcloud.</li>

src/Layouts/ItemRow.vala

+6-2
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ public class Layouts.ItemRow : Layouts.ItemBase {
129129
hide_loading_button.add_css_class ("no-padding");
130130
hide_loading_revealer.reveal_child = false;
131131
labels_summary.check_revealer ();
132+
print ("edit - check_revealer\n");
132133

133134
update_request ();
134135

@@ -672,9 +673,12 @@ public class Layouts.ItemRow : Layouts.ItemBase {
672673
} else {
673674
select_revealer.reveal_child = false;
674675
checked_button_revealer.reveal_child = true;
675-
labels_summary.check_revealer ();
676-
build_drag_and_drop ();
677676

677+
if (!edit) {
678+
labels_summary.check_revealer ();
679+
}
680+
681+
build_drag_and_drop ();
678682
select_checkbutton.active = false;
679683
}
680684
});

src/MainWindow.vala

+6-6
Original file line numberDiff line numberDiff line change
@@ -413,15 +413,15 @@ public class MainWindow : Adw.ApplicationWindow {
413413
if (scheduled_view != null) {
414414
scheduled_view.prepare_new_item (content);
415415
}
416-
} else if (views_stack.visible_child_name.has_prefix ("filter-view")) {
417-
Views.Filter? filter_view = (Views.Filter) views_stack.get_child_by_name ("filter-view");
416+
} else {
417+
Views.Filter? filter_view = (Views.Filter) views_stack.visible_child;
418418
if (filter_view != null) {
419419
filter_view.prepare_new_item (content);
420+
} else {
421+
var dialog = new Dialogs.QuickAdd ();
422+
dialog.update_content (content);
423+
dialog.show ();
420424
}
421-
} else {
422-
var dialog = new Dialogs.QuickAdd ();
423-
dialog.update_content (content);
424-
dialog.show ();
425425
}
426426
}
427427

src/Views/Filter.vala

+2
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,8 @@ public class Views.Filter : Adw.Bin {
152152
dialog.set_due (Util.get_default ().get_format_date (
153153
new GLib.DateTime.now_local ().add_days (1)
154154
));
155+
} else if (filter is Objects.Filters.Pinboard) {
156+
dialog.set_pinned (true);
155157
}
156158

157159
dialog.show ();

0 commit comments

Comments
 (0)