refactor(output button): null safety
This commit is contained in:
parent
b2479abb09
commit
5d93b9ac9b
1 changed files with 2 additions and 2 deletions
|
@ -37,10 +37,10 @@ fun AddOutputButton(
|
||||||
Button(
|
Button(
|
||||||
onClick =
|
onClick =
|
||||||
{
|
{
|
||||||
val entry: WatcherEntry? = watcherManager.getFromId(currentClick)
|
val entry: WatcherEntry = watcherManager.getFromId(currentClick)!!
|
||||||
showDirectoryPicker({
|
showDirectoryPicker({
|
||||||
Logger.info("Path: ${it.absolutePath}")
|
Logger.info("Path: ${it.absolutePath}")
|
||||||
entry!!.map.add(it.toPath())
|
entry.outputs.add(it.toPath())
|
||||||
outputs.add(it.toPath())
|
outputs.add(it.toPath())
|
||||||
}, {
|
}, {
|
||||||
Logger.info("No file selected.")
|
Logger.info("No file selected.")
|
||||||
|
|
Reference in a new issue