Destroy status windows; misc. cleanup
This commit is contained in:
1 parent
134de5fc69
commit
787c080c43
3 files changed
+5
-8
No files matched your search
@@ -26,5 +26,5 @@ Trigalarm is meant to be adapted to your needs with as little confusion as possi
|
||||
- Some of the alarm scheduling code was taken from [Gentle Wake](https://github.com/SeaPea/GentleWake). It seems trusted by the community, so... I stole it! The beauty of open source, no AI needed!
|
||||
- A custom font was made to satisfy the need for something that looks like LECO but is monospaced. The version I made contains only numbers, period, and colon, but if you want to build off of it, [it's public](https://git.wetfence.xyz/RandyTheSilly/pebble-misc/src/branch/main/fonts) and easy to modify!
|
||||
|
||||
## Future Goals (2.1 and beyond)
|
||||
## Future Goals (v2.1 and beyond)
|
||||
- Custom, self-hosted Pavlok API support (going to try some Bluetooth reverse engineering)
|
||||
+4
-5
@@ -109,6 +109,8 @@ static char *s_options_under[2];
|
||||
|
||||
////////////////////// STATUS //////////////////////
|
||||
|
||||
static void push_setter_window();
|
||||
|
||||
static void click_handler_push_setter(void *recognizer, void *ctx) {
|
||||
s_highlight_pos = 0;
|
||||
s_skip_current_day = true; // setting the next alarm should assume the user meant tomorrow
|
||||
@@ -120,10 +122,6 @@ static void click_handler_exit(void *recognizer, void *ctx) {
|
||||
window_stack_pop_all(true);
|
||||
}
|
||||
|
||||
static void click_handler_retry(void *recognizer, void *ctx) {
|
||||
window_stack_pop(true);
|
||||
}
|
||||
|
||||
static void status_confirmation_click_config_provider(void *ctx) {
|
||||
window_single_click_subscribe(BUTTON_ID_BACK, click_handler_push_setter);
|
||||
window_single_click_subscribe(BUTTON_ID_SELECT, click_handler_exit);
|
||||
@@ -162,6 +160,7 @@ static void status_window_load(StatusWindowPurpose purpose) {
|
||||
|
||||
static void status_window_unload() {
|
||||
text_layer_destroy(s_status_txt_layer);
|
||||
window_destroy(s_status_window);
|
||||
}
|
||||
|
||||
static void push_status_window(StatusWindowPurpose purpose) {
|
||||
@@ -450,7 +449,7 @@ static void update_for_new_triangle() {
|
||||
}
|
||||
|
||||
static void increment_secs_since_last_input() {
|
||||
if (s_secs_since_last_input < 10) {
|
||||
if (s_secs_since_last_input < MAX_SECS_WITHOUT_INPUT) {
|
||||
s_secs_since_last_input++;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,5 +5,3 @@ typedef enum
|
||||
STATUS_CONFIRMATION = 1,
|
||||
STATUS_SET_FAILURE = 2
|
||||
} StatusWindowPurpose;
|
||||
|
||||
static void push_setter_window();
|
||||
Reference in new issue
Block a user