Skip to content

Commit 657946d

Browse files
fix broken permissions for permanent and environment sections
1 parent a5a9588 commit 657946d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flatpost.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,7 +2598,7 @@ def _add_path_section(self, app_id, app, listbox, section_title, perm_type):
25982598
add_rm_icon = "list-add-symbolic"
25992599
use_icon = Gio.Icon.new_for_string(add_rm_icon)
26002600
btn.set_image(Gtk.Image.new_from_gicon(use_icon, Gtk.IconSize.BUTTON))
2601-
btn.connect("clicked", self._on_add_path, app_id, app)
2601+
btn.connect("clicked", self._on_add_path, app_id, app, perm_type)
26022602
hbox.pack_end(btn, False, True, 0)
26032603

26042604
listbox.add(row)
@@ -3440,7 +3440,7 @@ def _global_add_path_section(self, listbox, section_title, perm_type):
34403440
add_rm_icon = "list-add-symbolic"
34413441
use_icon = Gio.Icon.new_for_string(add_rm_icon)
34423442
btn.set_image(Gtk.Image.new_from_gicon(use_icon, Gtk.IconSize.BUTTON))
3443-
btn.connect("clicked", self._global_on_add_path)
3443+
btn.connect("clicked", self._global_on_add_path, perm_type)
34443444
hbox.pack_end(btn, False, True, 0)
34453445

34463446
listbox.add(row)

0 commit comments

Comments
 (0)