Skip to content

Commit

Permalink
fix #1264
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Aug 27, 2024
1 parent e597e71 commit 6d159a8
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 41 deletions.
30 changes: 15 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
41 changes: 34 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -45,14 +45,36 @@
<img alt="Get it from the Snap Store" src="https://snapcraft.io/static/images/badges/en/snap-store-black.svg" loading="lazy" width='240' draggable="false"/>
</a> -->

## 🛠 Compile
## 🛠 From Source

You'll need the following dependencies:

* vala
* meson
* gtk4
* libadwaita
<details>
<summary>Dependencies</summary>

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

</details>

Run `meson build` to configure the build environment. Change to the build directory and run `ninja` to build

Expand All @@ -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/).
Expand Down
33 changes: 14 additions & 19 deletions src/Layouts/ItemRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 (() => {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 6d159a8

Please sign in to comment.