elementary / elementary/files

IconView fails to refresh after reversing a cut/paste operation between parent and child folder

Open
#2,801 6 comments 0 reactions 1 assignee Claimed by @Dipanshusinghh View on GitHub
Dominant language
Vala
Stars
365
Forks
82
Avg merge
4d 2h
Merged PRs (30d)
3

Description

### What Happened?

Cut/pasted a file between two folders in separate tabs. The file appeared in the second folder OK. Moved the cut/pasted the file back in to the first tab. The view blanked and did not refresh until the view was resized or the refresh button was pressed. The file was successfully moved. No terminal warnings were given. Only happens with IconView. Moreover, it only happens between two tabs in the same window. If the second tab is in a separate window then the view redraws correctly.

Maybe related to some other issues involving refreshing but this is the easiest to reproduce

### Steps to Reproduce
Using IconView:
1. Create a folder and within it a child folder and open them in separate tabs A & B
2. Create a file in A
3. Cut/paste the file from A to B
4. Cut/paste the file from B to A or undo (`Z`) while displaying tab A
5. Notice tab A appears blank until refreshed

### Expected Behavior

The view always updates when a file is pasted into it.

### OS Version

8.x (Circe)

### OS Architecture

amd64 (on most hardwares)

### Session Type

Secure Session (Wayland, This is the default)

### Software Version

Early Access or Compiled from git

### Log Output

```shell

```

### Hardware Info

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.