1
0
mirror of https://gittea.dev/nova/th.git synced 2025-10-21 18:30:15 -04:00

fixed image previews sticking around longer than expected

This commit is contained in:
nova
2025-09-29 19:17:23 +02:00
parent 4784ec3f64
commit 36012b1a71
4 changed files with 21 additions and 3 deletions

View File

@@ -343,6 +343,10 @@ void open_with(){
cmd = concat(cmd, mid_content[selected_file_current].file_name);
cmd = concat(cmd, "\"");
#if SETTINGS_UEBERZUG_IMAGE_PREVIEW != 0
images_clear();
#endif
if (system(cmd) == -1) {
FAIL("open_with", "creating subcommand failed unhandled");
}
@@ -523,6 +527,9 @@ void update(){
void enter_shell(int passes, int index){
(void)passes;
#if SETTINGS_UEBERZUG_IMAGE_PREVIEW != 0
images_clear();
#endif
endwin();
if (system(key_binding[index].black_magic) != 0) {
/*do nothing*/