Skip to content

Commit

Permalink
add version to about dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
rodion-gudz committed Dec 24, 2021
1 parent ceb52d1 commit 387dc01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/main/kotlin/android_tool.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ fun main(args: Array<String>) {
createUI()
AndroidTool.main()
app_names_list.load(AndroidTool::class.java.getResourceAsStream("applist.properties"))
values_properties.load(AndroidTool::class.java.getResourceAsStream("values.properties"))
program_version = values_properties.getProperty("version")
GlobalScope.launch {
while (true) {
connectionCheck()
Expand Down
1 change: 1 addition & 0 deletions src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ var SDK_folder = jar_folder + if (windows) "\\Windows-SDK\\" else {
}
val device_properties_model = DefaultTableModel()
var program_version = ""
val values_properties = Properties()
val app_names_list = Properties()
val menu_bar = JMenuBar()
val menu_bar_main = JMenu("Program")
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/values.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=2.0.2

0 comments on commit 387dc01

Please sign in to comment.