Skip to content

Commit

Permalink
valid inbox and deck projects
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed May 13, 2024
1 parent cbec92f commit f21559a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Layouts/ProjectRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ public class Layouts.ProjectRow : Gtk.ListBoxRow {
menu_box.margin_top = menu_box.margin_bottom = 3;
menu_box.append (favorite_item);

if (!project.is_deck) {
if (!project.is_deck && !project.inbox_project) {
menu_box.append (edit_item);
}

Expand All @@ -671,7 +671,7 @@ public class Layouts.ProjectRow : Gtk.ListBoxRow {
menu_box.append (share_markdown_item);
menu_box.append (share_email_item);

if (!project.is_deck) {
if (!project.is_deck && !project.inbox_project) {
menu_box.append (new Widgets.ContextMenu.MenuSeparator ());
menu_box.append (archive_item);
menu_box.append (delete_item);
Expand Down
8 changes: 6 additions & 2 deletions src/Views/Project/Project.vala
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,12 @@ public class Views.Project : Adw.Bin {

var menu_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
menu_box.margin_top = menu_box.margin_bottom = 3;

if (!project.is_deck && !project.inbox_project) {
menu_box.append (edit_item);
}

if (!project.is_inbox_project) {
menu_box.append (edit_item);
menu_box.append (schedule_item);
menu_box.append (duplicate_item);
menu_box.append (new Widgets.ContextMenu.MenuSeparator ());
Expand All @@ -268,7 +272,7 @@ public class Views.Project : Adw.Bin {
menu_box.append (paste_item);
menu_box.append (show_completed_item);

if (!project.inbox_project) {
if (!project.is_deck && !project.inbox_project) {
menu_box.append (new Widgets.ContextMenu.MenuSeparator ());
menu_box.append (archive_item);
menu_box.append (delete_item);
Expand Down

0 comments on commit f21559a

Please sign in to comment.