Skip to content

Commit

Permalink
Simplify PartitionBlock even further
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Sep 24, 2024
1 parent 8d2e4bd commit 37459cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Views/PartitioningView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ public class Installer.PartitioningView : AbstractInstallerView {
private DiskBar get_disk_bar (InstallerDaemon.Disk disk, bool lvm) {
var partitions = new Gee.ArrayList<PartitionBlock> ();
foreach (unowned InstallerDaemon.Partition part in disk.partitions) {
var partition = new PartitionBlock (part, disk.device_path, disk.sector_size);
var partition = new PartitionBlock (part);

if (part.filesystem == LUKS) {
partition.menu = new DecryptMenu (part.device_path);
Expand Down
8 changes: 2 additions & 6 deletions src/Widgets/PartitionBlock.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,11 @@ public class Installer.PartitionBlock : Adw.Bin {
}

public InstallerDaemon.Partition partition { get; construct; }
public string parent_path { get; construct; }

public string? volume_group { get; private set; }

public PartitionBlock (InstallerDaemon.Partition partition, string parent_path, uint64 sector_size) {
Object (
parent_path: parent_path,
partition: partition
);
public PartitionBlock (InstallerDaemon.Partition partition) {
Object (partition: partition);
}

class construct {
Expand Down

0 comments on commit 37459cb

Please sign in to comment.