Skip to content

Commit 8e5b06a

Browse files
i'm stupid (fix file chooser)
1 parent d6dc75e commit 8e5b06a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

swingio/src/main/scala/net/bulbyvr/swing/io/wrapper/FileChooser.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import java.io.File
77
import cats.effect.syntax.all.*
88
import cats.syntax.all.*
99
object FileChooser {
10-
private class PartiallyAppliedApply[F[_]: Async] {
10+
private[io] class PartiallyAppliedApply[F[_]: Async] {
1111
private def getFC: F[JFileChooser] =
1212
Async[F].delay { JFileChooser() }.evalOn(AwtEventDispatchEC)
1313
private def showDialog(show: JFileChooser => Int): F[(Int, JFileChooser)] =
@@ -28,4 +28,5 @@ object FileChooser {
2828
def open: F[Option[File]] = showOpenDialog(_.showOpenDialog(null))
2929

3030
}
31+
def apply[F[_]: Async]: PartiallyAppliedApply[F] = new PartiallyAppliedApply[F]
3132
}

0 commit comments

Comments
 (0)