Skip to content

Commit

Permalink
Small clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfheij-sil committed Nov 11, 2024
1 parent 9902432 commit 0ed7369
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,11 @@ private bool InstallDblResource(string DBLEntryUid)
if (installableResource.Installed && !installableResource.IsNewerThanCurrentlyInstalled())
return true;

installableResource.Install();
// Note that we don't get any info telling if the installation succeeded or failed
installableResource.Install();

ScrTextCollection.RefreshScrTexts();
SendDataUpdateEvent("DblResources", "DBL resources data updated");
// see paratextprojectdataprovider
// DblResources
return true;
}

Expand All @@ -134,12 +132,12 @@ private bool UninstallDblResource(string DBLEntryUid)
return false;

ScrTextCollection.DeleteProject(
// Note that we don't get any info telling if uninstalling succeeded or failed
installableResource.ExistingScrText ?? installableResource.ExistingDictionary
// Note that we don't get any info telling if uninstalling succeeded or failed
);

ScrTextCollection.RefreshScrTexts();
SendDataUpdateEvent("*", "DBL resources data updated");
SendDataUpdateEvent("DblResources", "DBL resources data updated");
return true;
}

Expand Down

0 comments on commit 0ed7369

Please sign in to comment.