Skip to content

Commit

Permalink
Added option to open the .qodat folder
Browse files Browse the repository at this point in the history
  • Loading branch information
dosier committed Jul 2, 2024
1 parent c8aa60e commit b363932
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/main/kotlin/stan/qodat/scene/controller/MainController.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import stan.qodat.util.bind
import stan.qodat.util.createDragSpace
import stan.qodat.util.createSelectTabListener
import stan.qodat.util.setAndBind
import java.awt.Desktop
import java.net.URL
import java.nio.file.Path
import java.util.*
Expand Down Expand Up @@ -398,8 +399,16 @@ class MainController : SceneController("main-scene") {
}
}

@FXML
fun openQodatFolder() {
Properties.rootPath.get().toFile().apply {
if (exists())
Desktop.getDesktop().browseFileDirectory(this)
}
}

@FXML
fun clearModels() {
}

}
}
1 change: 1 addition & 0 deletions src/main/resources/stan/qodat/main.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" onAction="#setCachePath" text="Change Cache" />
<MenuItem mnemonicParsing="false" onAction="#openQodatFolder" text="Open .qodat Folder" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
Expand Down

0 comments on commit b363932

Please sign in to comment.