Skip to content

Commit

Permalink
feat: setProjectName accepts null or empty value as reset Fixes #362
Browse files Browse the repository at this point in the history
  • Loading branch information
augi committed Jun 30, 2022
1 parent 9f02019 commit 33cb671
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,13 @@ abstract class ComposeSettings {
protected Boolean customProjectNameSet
protected String safeProjectNamePrefix
void setProjectName(String customProjectName) {
this.customProjectName = customProjectName
this.customProjectNameSet = true
if (customProjectName == null || customProjectName.isEmpty()) {
this.customProjectName = null
this.customProjectNameSet = false
} else {
this.customProjectName = customProjectName
this.customProjectNameSet = true
}
}
private Provider<String> projectNameProvider
Provider<String> getProjectName() {
Expand Down

0 comments on commit 33cb671

Please sign in to comment.