mirror of
https://gittea.dev/nova/th.git
synced 2025-10-22 02:40:15 -04:00
fixed image previews sticking around longer than expected
This commit is contained in:
@@ -100,7 +100,7 @@ char* generic(char *path){
|
||||
}
|
||||
}
|
||||
#if SETTINGS_UEBERZUG_IMAGE_PREVIEW != 0
|
||||
void images_clear() {
|
||||
void images_clear(){
|
||||
if (previewd == 1) {
|
||||
fprintf(ueberzug, "{\"action\": \"remove\", \
|
||||
\"identifier\": \"preview\"}\n");
|
||||
@@ -108,7 +108,7 @@ void images_clear() {
|
||||
previewd = 0;
|
||||
}
|
||||
}
|
||||
void images_print(char *file_name) {
|
||||
void images_print(char *file_name){
|
||||
char *path=getcwd(NULL, 0);
|
||||
|
||||
fprintf(ueberzug, "{\"action\":\"add\", \
|
||||
@@ -129,4 +129,8 @@ void ueberzug_init(){
|
||||
ueberzug = popen("ueberzug layer -s --no-cache ", "w");
|
||||
#endif
|
||||
}
|
||||
void ueberzug_close(){
|
||||
images_clear();
|
||||
pclose(ueberzug);
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user