Skip to content

Commit

Permalink
export and document handler:update-currently-open-files
Browse files Browse the repository at this point in the history
  • Loading branch information
rfindler committed Aug 22, 2024
1 parent dbb1ab3 commit 03b7ffa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions gui-lib/framework/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,20 @@ was never saved, then the first element of the list is @racket[#f].
@{Sizes the @racket['framework:recently-opened-files/pos] preference list
length to @racket[num].})

(proc-doc/names
handler:update-currently-open-files
(-> void?)
()

@{
This is called when new files are opened or when files
are closed or when the frontmost window changes. As long as the app
is not currently exiting, it updates the
preference with the key @racket['framework:last-opened-files] to
hold a list of list of paths, to record the lists of files that
are currently open in tabs.
})

(proc-doc/names
icon:get-paren-highlight-bitmap
(-> (is-a?/c bitmap%))
Expand Down
2 changes: 1 addition & 1 deletion gui-lib/framework/private/sig.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@
open-file
install-recent-items
add-to-recent
update-currently-open-files ;; not provided outside of the unit
update-currently-open-files
set-recent-position
set-recent-items-frame-superclass
size-recently-opened-files))
Expand Down

0 comments on commit 03b7ffa

Please sign in to comment.