Skip to content

Commit

Permalink
rename canRead/WriteSettingsFile
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Dec 14, 2023
1 parent 6a97ce7 commit d29a2aa
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions shared/update_check_settings_file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ bool UpdateCheckerSettingsFile::setLastReportedVersion(Version version)
}


bool UpdateCheckerSettingsFile::canReadSettingsFile()
bool UpdateCheckerSettingsFile::canRead()
{
return loadSettings();
}

bool UpdateCheckerSettingsFile::canWriteSettingsFile()
bool UpdateCheckerSettingsFile::canWrite()
{
return saveSettings();
}
Expand Down
4 changes: 2 additions & 2 deletions shared/update_check_settings_file.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UpdateCheckerSettingsFile {
Version getLastReportedVersion();
bool setLastReportedVersion(Version version);

bool canReadSettingsFile();
bool canWriteSettingsFile();
bool canRead();
bool canWrite();

private:

Expand Down
2 changes: 1 addition & 1 deletion tools/setup/install_phases/component_complete.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void ComponentComplete::configureForInstallPhase()

AutoUpdateCheckButton::AutoUpdateCheckButton()
{
bool success = updateCheckerSettingsFile.canWriteSettingsFile();
bool success = updateCheckerSettingsFile.canWrite();

text1.setFont(EarFontsSingleton::instance().Label);
text1.setColour(Label::textColourId, EarColours::Label.withAlpha(Emphasis::high));
Expand Down

0 comments on commit d29a2aa

Please sign in to comment.