Skip to content

Commit

Permalink
fix: execute the function only when response_is_ok in subvol edit dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilez0 committed Apr 18, 2024
1 parent 0219a21 commit ccd3594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion live-installer/frontend/partitioning.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ def edit_partition_dialog(widget, path, viewcol):
row[IDX_PART_TYPE],
_("Edit Subvolume"))
response_is_ok, subvolume_name, mount_as = dlg.show()
assign_mount_point(partition, mount_as, _("btrfs subvolume"), False, subvolume_name)
if response_is_ok:
assign_mount_point(partition, mount_as, _("btrfs subvolume"), False, subvolume_name)
return
if (partition.partition.type != parted.PARTITION_EXTENDED and
partition.partition.number != -1):
Expand Down

0 comments on commit ccd3594

Please sign in to comment.