Fix language config dialog not showing when some languages are disabled
This commit is contained in:
parent
039abedc10
commit
00827a133a
|
@ -1176,9 +1176,11 @@
|
||||||
;; remove the newline at the front of the first inlined category (if there)
|
;; 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.
|
;; 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))])
|
(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))
|
(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))
|
(when (equal? "\n" (send t get-text 0 1))
|
||||||
(send t delete 0 1)))
|
(send t delete 0 1))))
|
||||||
|
|
||||||
(send details-outer-panel stretchable-width #f)
|
(send details-outer-panel stretchable-width #f)
|
||||||
(send details/manual-parent-panel change-children
|
(send details/manual-parent-panel change-children
|
||||||
|
|
Loading…
Reference in New Issue
Block a user