Skip to content

Commit

Permalink
Moved FlipC screenshots (#143)
Browse files Browse the repository at this point in the history
* Moved FlipC screenshots according to playmean/fap-list#12 (comment)

* Fixed code smell
  • Loading branch information
akopachov authored Apr 26, 2023
1 parent d6383b3 commit 1894142
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 6 deletions.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
8 changes: 3 additions & 5 deletions totp/services/config/token_info_iterator.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,9 @@ static bool ensure_stream_ends_with_lf(Stream* stream) {
return false;
}

if(last_char != '\n') {
const uint8_t lf = '\n';
if(!stream_write(stream, &lf, 1)) {
return false;
}
const uint8_t lf = '\n';
if(last_char != lf && !stream_write(stream, &lf, 1)) {
return false;
}

if(!stream_seek(stream, original_pos, StreamOffsetFromStart)) {
Expand Down
2 changes: 1 addition & 1 deletion totp/ui/scenes/generate_token/totp_scene_generate_token.c
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ void totp_scene_generate_token_render(Canvas* const canvas, PluginState* plugin_
if(totp_token_info_iterator_get_total_count(iterator_context) > 1) {
canvas_draw_icon(canvas, 0, SCREEN_HEIGHT_CENTER - 24, &I_totp_arrow_left_8x9);
canvas_draw_icon(
canvas, SCREEN_WIDTH - 9, SCREEN_HEIGHT_CENTER - 24, &I_totp_arrow_right_8x9);
canvas, SCREEN_WIDTH - 8, SCREEN_HEIGHT_CENTER - 24, &I_totp_arrow_right_8x9);
}

#ifdef TOTP_AUTOMATION_ICONS_ENABLED
Expand Down

0 comments on commit 1894142

Please sign in to comment.