Skip to content

Commit

Permalink
Merge pull request #72 from NthPortal/future-onsuccess
Browse files Browse the repository at this point in the history
Remove use of deprecated Future.onSuccess
  • Loading branch information
benhutchison authored Mar 2, 2018
2 parents 2fe4b94 + 17753c8 commit 7a0176f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,15 @@ class IconDemoApp extends MainFrame {
}.toList
}

f.onSuccess{
case thumbs:List[Option[ThumbnailAction]] =>
f.foreach {
thumbs:List[Option[ThumbnailAction]] =>
buttonBar.contents.dropRight(1)
thumbs.foreach{ thumbAction => {
thumbAction.foreach { ta =>
buttonBar.contents += new Button(ta)
}
}}
buttonBar.contents += Swing.Glue

}


Expand Down

0 comments on commit 7a0176f

Please sign in to comment.