Skip to content

Commit

Permalink
Add action function to call wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
XK9274 committed Oct 30, 2023
1 parent 26c4159 commit 5711fc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tweaks/actions.h
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,7 @@ void action_setAltBrightness(void *pt)
config_flag_set(".altBrightness", ((ListItem *)pt)->value);
}


void action_advancedSetLcdVoltage(void *pt)
{
int value = 0x0e - ((ListItem *)pt)->value;
Expand Down Expand Up @@ -330,4 +331,10 @@ void action_advancedSetLcdVoltage(void *pt)
file_put(fp, LCD_VOLT_CONFIG, "%x", 0x0e);
}

const char* action_LaunchKeyboardWrapper(const char *initial_value, const char *title) {
const char* result = launch_keyboard(initial_value, title);
all_changed = true;
return result;
}

#endif // TWEAKS_ACTIONS_H__

0 comments on commit 5711fc0

Please sign in to comment.