Skip to content

Commit

Permalink
remove unneeded statements
Browse files Browse the repository at this point in the history
  • Loading branch information
jstaf committed Apr 20, 2024
1 parent 6227f8b commit 99ada8d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/onedriver-launcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -340,10 +340,6 @@ func newMountRow(config common.Config, mount string) (*gtk.ListBoxRow, *gtk.Swit
ctx.Info().
Msg("Renaming mount.")
popover.GrabFocus()
entry.SetProgressFraction(0.1)
entry.SetCanDefault(false)
defer entry.SetCanDefault(true)
defer entry.SetProgressFraction(0)

err = systemd.UnitSetActive(unitName, true)
if err != nil {
Expand All @@ -353,7 +349,6 @@ func newMountRow(config common.Config, mount string) (*gtk.ListBoxRow, *gtk.Swit
mountToggle.SetActive(true)

if ui.PollUntilAvail(mount, -1) {
entry.SetProgressFraction(0.25)
xdgVolumeInfo := common.TemplateXDGVolumeInfo(newName)
driveName = newName
//FIXME why does this not work???
Expand All @@ -362,7 +357,6 @@ func newMountRow(config common.Config, mount string) (*gtk.ListBoxRow, *gtk.Swit
ctx.Error().Err(err).Msg("Failed to write new mount name.")
return
}
entry.SetProgressFraction(0.5)
} else {
ctx.Error().Err(err).Msg("Mount never became ready.")
}
Expand Down

0 comments on commit 99ada8d

Please sign in to comment.