From 6d159a8044579e39563518e1bed58e0337b7bddc Mon Sep 17 00:00:00 2001 From: Alain Date: Tue, 27 Aug 2024 04:51:48 -0500 Subject: [PATCH] fix #1264 --- .github/workflows/build.yml | 30 +++++++++++++-------------- README.md | 41 ++++++++++++++++++++++++++++++------- src/Layouts/ItemRow.vala | 33 +++++++++++++---------------- 3 files changed, 63 insertions(+), 41 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2da148500..8bbea8352 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -31,18 +31,18 @@ jobs: cache-key: flatpak-builder-${{ github.sha }} repository-name: flathub-beta repository-url: https://flathub.org/beta-repo/flathub-beta.flatpakrepo - snap: - name: "Snap" - runs-on: ubuntu-latest - steps: - - name: Checkout Git repository - uses: actions/checkout@v4 - - name: Build Snap - uses: snapcore/action-build@v1 - id: snapcraft-build - with: - snapcraft-args: "--verbosity debug" - - uses: actions/upload-artifact@v4 - with: - name: planify_amd64_snap - path: ${{ steps.snapcraft-build.outputs.snap }} + # snap: + # name: "Snap" + # runs-on: ubuntu-latest + # steps: + # - name: Checkout Git repository + # uses: actions/checkout@v4 + # - name: Build Snap + # uses: snapcore/action-build@v1 + # id: snapcraft-build + # with: + # snapcraft-args: "--verbosity debug" + # - uses: actions/upload-artifact@v4 + # with: + # name: planify_amd64_snap + # path: ${{ steps.snapcraft-build.outputs.snap }} diff --git a/README.md b/README.md index de5795563..eb3cea013 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ - 🌙️ Better integration with the dark theme. - 🎉️ and much more. -### ☁️ Support for Todoist: +### ☁️ Support for Todoist & Nextcloud: -- Synchronize your Projects, Tasks, and Sections thanks to Todoist. +- Synchronize your Projects, Tasks and Sections. - Support for Todoist offline: Work without an internet connection; when everything is reconnected, it will be synchronized. - Planify is not created by, affiliated with, or supported by Doist @@ -45,14 +45,36 @@ Get it from the Snap Store --> -## 🛠 Compile +## 🛠 From Source You'll need the following dependencies: -* vala -* meson -* gtk4 -* libadwaita +
+Dependencies + +Package Name | Required Version +:--- |---:| +meson | 0.56 +valac | 0.48 +gio-2.0 | 2.80.3 +glib-2.0 | 2.80.3 +gee-0.8 | 0.20.6 +gtk4 | 4.14.4 +libsoup-3.0 | 3.4.4 +sqlite3 | 3.45.1 +libadwaita-1 | 1.5.3 +webkitgtk-6.0 | 2.44.3 +gtksourceview-5 | 5.12.1 +granite-7 | 7.4.0 +json-glib-1.0 | 1.8.0 +libecal-2.0 | 3.52.4 +libedataserver-1.2 | 3.52.4 +libportal | 0.7.1 +libportal-gtk4 | 0.7.1 +gxml-0.20 | 0.21.0 +libsecret-1 | 0.21.4 + +
Run `meson build` to configure the build environment. Change to the build directory and run `ninja` to build @@ -65,6 +87,11 @@ To install, use `ninja install`, then execute with `io.github.alainm23.planify` sudo ninja install io.github.alainm23.planify +### GNOME Builder + +- Clone +- Open in GNOME Builder + ## Code of conduct Planify follows the [GNOME Code of Conduct](https://conduct.gnome.org/). diff --git a/src/Layouts/ItemRow.vala b/src/Layouts/ItemRow.vala index d8ad09978..e7c159ef8 100644 --- a/src/Layouts/ItemRow.vala +++ b/src/Layouts/ItemRow.vala @@ -599,31 +599,14 @@ public class Layouts.ItemRow : Layouts.ItemBase { selected_toggled (select_checkbutton.active); } else { Timeout.add (100, () => { - if (Services.Settings.get_default ().settings.get_boolean ("open-task-sidebar")) { - Services.EventBus.get_default ().open_item (item); - } else { - if (Services.Settings.get_default ().settings.get_boolean ("attention-at-one")) { - Services.EventBus.get_default ().item_selected (item.id); - } else { - edit = true; - } - } - + show_details (); return GLib.Source.REMOVE; }); } })] = handle_gesture_click; activate.connect (() => { - if (Services.Settings.get_default ().settings.get_boolean ("open-task-sidebar")) { - Services.EventBus.get_default ().open_item (item); - } else { - if (Services.Settings.get_default ().settings.get_boolean ("attention-at-one")) { - Services.EventBus.get_default ().item_selected (item.id); - } else { - edit = true; - } - } + show_details (); }); signals_map[Services.EventBus.get_default ().mobile_mode_change.connect (() => { @@ -826,6 +809,18 @@ public class Layouts.ItemRow : Layouts.ItemBase { })] = attachments; } + private void show_details () { + if (Services.Settings.get_default ().settings.get_boolean ("open-task-sidebar")) { + Services.EventBus.get_default ().open_item (item); + } else { + if (Services.Settings.get_default ().settings.get_boolean ("attention-at-one")) { + Services.EventBus.get_default ().item_selected (item.id); + } else { + edit = true; + } + } + } + public void check_hide_subtask_button () { if (!edit) { hide_subtask_revealer.reveal_child = subitems.has_children;