jdxi_editor.ui.windows.jdxi.recent_files

Recent MIDI Files Manager

Manages a list of recently opened MIDI files, persisting them to disk.

Classes

RecentFilesManager

Manages recent MIDI files list with persistence.

Module Contents

class jdxi_editor.ui.windows.jdxi.recent_files.RecentFilesManager[source]

Manages recent MIDI files list with persistence.

MAX_RECENT_FILES = 10[source]
config_dir[source]
recent_files_path[source]
_recent_files: List[str] = [][source]
_load_recent_files() None[source]

Load recent files from disk.

_save_recent_files() None[source]

Save recent files to disk.

add_file(file_path: str) None[source]

Add a file to the recent files list.

Parameters:

file_path – Path to the MIDI file

get_recent_files() List[str][source]

Get the list of recent files.

Returns:

List of file paths

clear_recent_files() None[source]

Clear all recent files.