Преглед на файлове

Moved FlipC screenshots (#143)

* Moved FlipC screenshots according to https://github.com/playmean/fap-list/issues/12#issuecomment-1523386620

* Fixed code smell
Alexander Kopachov преди 2 години
родител
ревизия
d8bf9c5a42

BIN
.flipcorg/gallery/1.png


BIN
.flipcorg/gallery/2.png


BIN
.flipcorg/gallery/3.png


BIN
.flipcorg/gallery/4.png


+ 3 - 5
services/config/token_info_iterator.c

@@ -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)) {

+ 1 - 1
ui/scenes/generate_token/totp_scene_generate_token.c

@@ -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