musescore / musescore/MuseScore

[MU4 Issue] List of recent files grows infinitely

Open
#13,799 7 comments 0 reactions 1 assignee View on GitHub

@cbjeukendrup is already working on this.

Since Oct 17, 2022.

P3
Dominant language
C++
Stars
15.1k
Forks
3.3k
Avg merge
2d 2h
Merged PRs (30d)
91

Description

Describe the bug
The list of recent files grows infinitely; it can become unlimitedly long.

Expected behavior
@Tantacrul / @bkunda, what shall we do?

Possible solutions:

  • limit by number, for example max 100 recent files
  • limit by modified date, for example max 1 year since modified. But actually, this is not an option, because it would imply that a file that is opened without modifying and last modified more than 1 year ago will not appear in the list.
  • limit by opened date, but that would require storing the opening dates in the list of recent files, because not all operating systems support "opened" date.

Of course, we don't want to set the limit too low, because a filled home page looks 100x nicer than with just a few scores. On the other hand, in the menu bar > File > Open recent, it doesn't look very nice to have a super long list. Of course, we can cut the File > Open recent list at 10 files and let the Home list grow longer, but I'm not sure whether that's a good idea, and we'll need to limit the list anyway, otherwise we waste kilobytes or eventually megabytes of disk space with just the list of recent files.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.