Skip to content

Commit

Permalink
make format
Browse files Browse the repository at this point in the history
  • Loading branch information
Craven committed Aug 29, 2024
1 parent 00b2b35 commit ab4b742
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/component/title.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ LSComponent* ls_component_title_new()
gtk_widget_set_valign(self->attempt_count, GTK_ALIGN_START);
gtk_container_add(GTK_CONTAINER(self->header), self->attempt_count);
gtk_widget_show(self->attempt_count);

self->finished_count = gtk_label_new(NULL);
add_class(self->finished_count, "finished_count");
gtk_widget_set_margin_start(self->finished_count, 8);
Expand Down
4 changes: 2 additions & 2 deletions src/timer.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ int ls_game_create(ls_game** game_ptr, const char* path, char** error_msg)
if (ref) {
game->attempt_count = json_integer_value(ref);
}
//get finished count
// get finished count
ref = json_object_get(json, "finished_count");
if (ref) {
game->finished_count = json_integer_value(ref);
Expand Down Expand Up @@ -648,7 +648,7 @@ int ls_timer_split(ls_timer* timer)
++timer->curr_split;
// stop timer if last split
if (timer->curr_split == timer->game->split_count) {
//Increment finished_count
// Increment finished_count
++*timer->finished_count;
ls_timer_stop(timer);
ls_game_update_splits((ls_game*)timer->game, timer);
Expand Down

0 comments on commit ab4b742

Please sign in to comment.