Skip to content

Commit

Permalink
Fix the issue where the LoadingDecorator constructor's non-null `ic…
Browse files Browse the repository at this point in the history
…on` parameter is null.

fix: #6246
  • Loading branch information
YiiGuxing committed Dec 17, 2024
1 parent 2d04712 commit 32f232a
Showing 1 changed file with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@ import javax.swing.JLabel
import javax.swing.JPanel
import javax.swing.SwingConstants

internal class WordBookWindowLoadingDecorator(content: JComponent, parent: Disposable) :
LoadingDecorator(content, parent, -1) {
internal class WordBookWindowLoadingDecorator(
content: JComponent,
parent: Disposable
) : LoadingDecorator(
content = content,
parent = parent,
startDelayMs = -1,
icon = AsyncProcessIcon.Big("Loading")
) {

override fun customizeLoadingLayer(parent: JPanel, text: JLabel, icon: AsyncProcessIcon): NonOpaquePanel {
parent.layout = GridBagLayout()
Expand Down

0 comments on commit 32f232a

Please sign in to comment.