From ee840709d3d93376f9b5da6c34572424079304b8 Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Mon, 6 May 2024 16:39:57 -0400 Subject: [Feature] Open plugins now recognizes known filetypes and can run them now you can run your lua files without having to add the viewer to the shortcut or if you want a bmp file to be displayed when you start the device that can be done as well Change-Id: Ia56b566789623a2ca78d9e4583086db6e2cd689b --- apps/plugins/imageviewer/imageviewer.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/plugins/imageviewer') diff --git a/apps/plugins/imageviewer/imageviewer.c b/apps/plugins/imageviewer/imageviewer.c index d1a512c4fd..9d5aea7f15 100644 --- a/apps/plugins/imageviewer/imageviewer.c +++ b/apps/plugins/imageviewer/imageviewer.c @@ -1033,7 +1033,7 @@ enum plugin_status plugin_start(const void* parameter) long greysize; /* helper */ #endif - if(!parameter) return PLUGIN_ERROR; + if(!parameter) {rb->splash(HZ*2, "No file"); return PLUGIN_ERROR; } rb->strcpy(np_file, parameter); if (get_image_type(np_file, false) == IMAGE_UNKNOWN) @@ -1051,8 +1051,6 @@ enum plugin_status plugin_start(const void* parameter) get_pic_list(); - if(!entries) return PLUGIN_ERROR; - #ifdef USEGSLIB if (!grey_init(buf, buf_size, GREY_ON_COP, LCD_WIDTH, LCD_HEIGHT, &greysize)) -- cgit v1.2.3