Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Commit

Permalink
Fix pull CLI ops to avoid losing prefs for the GUI (#813)
Browse files Browse the repository at this point in the history
Somehow, setting the sd in the pull CLI ops was losing prefs for the GUI, and users were asked to set it again in the next GUI launch.

Also, setting the sd in CLI ops is not required (downstream code gets the briefcaseDir directly), so it's a safe change to do.
  • Loading branch information
ggalmazor authored Sep 20, 2019
1 parent 4453351 commit f7cc413
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ public static void pullFormFromAggregate(String storageDir, Optional<String> for
FormCache formCache = FormCache.from(briefcaseDir);
formCache.update();
BriefcasePreferences appPreferences = BriefcasePreferences.appScoped();
appPreferences.setStorageDir(briefcaseDir);
FormMetadataPort formMetadataPort = FileSystemFormMetadataAdapter.at(briefcaseDir);

int maxHttpConnections = Optionals.race(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ private static void pullFromCentral(Args args) {
FormCache formCache = FormCache.from(briefcaseDir);
formCache.update();
BriefcasePreferences appPreferences = BriefcasePreferences.appScoped();
appPreferences.setStorageDir(briefcaseDir);
FormMetadataPort formMetadataPort = FileSystemFormMetadataAdapter.at(briefcaseDir);

int maxHttpConnections = Optionals.race(
Expand Down

0 comments on commit f7cc413

Please sign in to comment.