Skip to content

Commit

Permalink
change name of function beacause code to late in night is bad idee
Browse files Browse the repository at this point in the history
  • Loading branch information
cartoone222 committed Jun 18, 2024
1 parent f345bdd commit 10be4b1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/global_preferences.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ class GlobalPreferences {
void setAutocomplete(bool autocomple) { m_autoComplete = autocomple; }
bool syntaxhighlighting() const { return m_syntaxhighlighting; }
void setSyntaxhighlighting(bool syntaxhighlight) { m_syntaxhighlighting = syntaxhighlight; }
bool clearalphalockshift() const { return m_clearalphalockshift; }
void setclearalphalockshift(bool clearalphalockshift) { m_clearalphalockshift = clearalphalockshift; }
bool clearshift() const { return m_clearalphalockshift; }
void setclearshift(bool clearalphalockshift) { m_clearalphalockshift = clearalphalockshift; }
int brightnessLevel() const { return m_brightnessLevel; }
void setBrightnessLevel(int brightnessLevel);
const KDFont * font() const { return m_font; }
Expand Down
4 changes: 2 additions & 2 deletions apps/settings/sub_menu/code_options_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool CodeOptionsController::handleEvent(Ion::Events::Event event) {
m_selectableTableView.reloadCellAtLocation(m_selectableTableView.selectedColumn(), m_selectableTableView.selectedRow());
break;
case 3:
GlobalPreferences::sharedGlobalPreferences()->setclearalphalockshift(!GlobalPreferences::sharedGlobalPreferences()->clearalphalockshift());
GlobalPreferences::sharedGlobalPreferences()->setclearshift(!GlobalPreferences::sharedGlobalPreferences()->clearshift());
m_selectableTableView.reloadCellAtLocation(m_selectableTableView.selectedColumn(), m_selectableTableView.selectedRow());
break;
default:
Expand Down Expand Up @@ -89,7 +89,7 @@ void CodeOptionsController::willDisplayCellForIndex(HighlightCell * cell, int in
else if (thisLabel == I18n::Message::Clearshiftlock) {
MessageTableCellWithSwitch * mySwitchCell = (MessageTableCellWithSwitch *)cell;
SwitchView * mySwitch = (SwitchView *)mySwitchCell->accessoryView();
mySwitch->setState(GlobalPreferences::sharedGlobalPreferences()->clearalphalockshift());
mySwitch->setState(GlobalPreferences::sharedGlobalPreferences()->clearshift());
}
#endif
}
Expand Down
2 changes: 1 addition & 1 deletion escher/src/text_area.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ bool TextArea::handleEvent(Ion::Events::Event event) {
contentView()->resetSelection();
contentView()->moveCursorGeo(0, event == Ion::Events::Up ? -step : step);
} else if (event == Ion::Events::Clear) {
if (GlobalPreferences::sharedGlobalPreferences()->clearalphalockshift()) {
if (GlobalPreferences::sharedGlobalPreferences()->clearshift()){
if (!contentView()->selectionIsEmpty()) {
deleteSelection();
return true;
Expand Down

0 comments on commit 10be4b1

Please sign in to comment.