Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix language config dialog not showing when some languages are disabled #186

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 5 additions & 3 deletions collects/drracket/private/language-configuration.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -1176,9 +1176,11 @@
;; remove the newline at the front of the first inlined category (if there)
;; it won't be there if the module language is at the top.
(for ([hier-list (in-list (list other-languages-hier-list teaching-languages-hier-list))])
(define t (send (car (send hier-list get-items)) get-editor))
(when (equal? "\n" (send t get-text 0 1))
(send t delete 0 1)))
(define items (send hier-list get-items))
(unless (null? items)
(define t (send (car items) get-editor))
(when (equal? "\n" (send t get-text 0 1))
(send t delete 0 1))))

(send details-outer-panel stretchable-width #f)
(send details/manual-parent-panel change-children
Expand Down