Skip to content

Commit

Permalink
Add to construct
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit committed Sep 7, 2024
1 parent 26ec536 commit 25fa5cd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/View/Sidebar/VolumeRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ public class Sidebar.VolumeRow : Sidebar.AbstractMountableRow, SidebarItemInterf
if (drive_name != null && drive_name != "") {
custom_name = _("%s (%s)").printf (custom_name, drive_name);
}
}

construct {
volume_monitor.volume_removed.connect (on_volume_removed);

var mount_action = new SimpleAction ("mount", null);
mount_action.activate.connect (() => mount_volume ());
Expand All @@ -89,10 +93,6 @@ public class Sidebar.VolumeRow : Sidebar.AbstractMountableRow, SidebarItemInterf
insert_action_group ("volume", action_group);
}

construct {
volume_monitor.volume_removed.connect (on_volume_removed);
}

protected override void activated (Files.OpenFlag flag = Files.OpenFlag.DEFAULT) {
if (working) {
return;
Expand Down

0 comments on commit 25fa5cd

Please sign in to comment.