Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Feb 22, 2024
1 parent 892661c commit 3fc9ee1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Dialogs/Preferences/PreferencesWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ public class Dialogs.Preferences.PreferencesWindow : Adw.PreferencesWindow {
var settings_header = new Dialogs.Preferences.SettingsHeader (_("Quick Add"));

string quick_add_command = "flatpak run --command=io.github.alainm23.planify.quick-add %s".printf (Build.APPLICATION_ID);
if (GLib.Environment.get_variable("SNAP") != null) {
if (GLib.Environment.get_variable ("SNAP") != null) {
quick_add_command = "planify.quick-add";
}

Expand Down
9 changes: 3 additions & 6 deletions src/Layouts/SectionRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -321,8 +321,7 @@ public class Layouts.SectionRow : Gtk.ListBoxRow {

Services.EventBus.get_default ().item_moved.connect ((item, old_project_id, old_section_id, old_parent_id) => {
// vala-lint=no-space
if (old_project_id == section.project_id &&
old_section_id == section.id) {
if (old_project_id == section.project_id && old_section_id == section.id) {
if (items.has_key (item.id)) {
items [item.id].hide_destroy ();
items.unset (item.id);
Expand All @@ -332,12 +331,10 @@ public class Layouts.SectionRow : Gtk.ListBoxRow {
items_checked [item.id].hide_destroy ();
items_checked.unset (item.id);
}
}
}:

// vala-lint=no-space
if (item.project_id == section.project_id &&
item.section_id == section.id &&
item.parent_id == "") {
if (item.project_id == section.project_id && item.section_id == section.id && item.parent_id == "") {
add_item (item);
}
});
Expand Down

0 comments on commit 3fc9ee1

Please sign in to comment.