Skip to content

Commit 26965ee

Browse files
committed
fix: settings, appname
1 parent bbd5329 commit 26965ee

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

application.fam

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ App(
22
appid="flipchess",
33
name="Chess",
44
apptype=FlipperAppType.EXTERNAL,
5-
entry_point="flip_chess_app",
5+
entry_point="flipchess_app",
66
requires=[
77
"gui",
88
],

flipchess.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void flipchess_app_free(FlipChess* app) {
143143
app->notification = NULL;
144144

145145
//Remove whatever is left
146-
memzero(app, sizeof(FlipChess));
146+
//memzero(app, sizeof(FlipChess));
147147
free(app);
148148
}
149149

scenes/flipchess_scene_settings.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ void flipchess_scene_settings_on_enter(void* context) {
6060
// White mode
6161
item = variable_item_list_add(
6262
app->variable_item_list, "White:", 4, flipchess_scene_settings_set_white_mode, app);
63-
value_index = value_index_uint32(app->white_mode, player_mode_value, 0);
63+
value_index = value_index_uint32(app->white_mode, player_mode_value, 4);
6464
variable_item_set_current_value_index(item, value_index);
6565
variable_item_set_current_value_text(item, player_mode_text[value_index]);
6666

6767
// Black mode
6868
item = variable_item_list_add(
6969
app->variable_item_list, "Black:", 4, flipchess_scene_settings_set_black_mode, app);
70-
value_index = value_index_uint32(app->black_mode, player_mode_value, 1);
70+
value_index = value_index_uint32(app->black_mode, player_mode_value, 4);
7171
variable_item_set_current_value_index(item, value_index);
7272
variable_item_set_current_value_text(item, player_mode_text[value_index]);
7373

0 commit comments

Comments
 (0)