Skip to content

Commit

Permalink
add some features🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaobaishushu25 committed Feb 21, 2024
1 parent 1e51638 commit 01b1a87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/kotlin/xbss/test/TestTab.kt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestTab:Application() {
prefWidth = InitSize.APP_WIDTH
prefHeight = InitSize.TABPANE_HEIGHT
tabDragPolicy = TabPane.TabDragPolicy.REORDER // 启用重新排序标签页
stylesheets.add(this::class.java.getResource("/css/xbss.css").toExternalForm())
stylesheets.add(this::class.java.getResource("/css/xbss.css")!!.toExternalForm())
}
val button = Button("change").apply {
setOnAction {
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/xbss/utils/SystemData.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ class SystemData(private val ssh: SSH):HBox() {
this.prefHeight = 20.0
} catch (e: Exception) {
//如果上面有转换错误(一般由于\r\n等没处理,或者根本没有显卡),他不会抛异常报错而是直接卡在转换失败的地方,我try catch也捕获不到,但是可以正常运行了,只是这个功能没了
println("初始化系统信息失败!")
// println("初始化系统信息失败!")
GlobalLog.writeErrorLog("初始化系统信息失败!")
}
}

Expand Down Expand Up @@ -169,7 +170,6 @@ class SystemData(private val ssh: SSH):HBox() {
""
).split("\n")
// 3, 21177 MiB, 24576 MiB
print("gpuResult $gpuResult")

for (s in gpuResult){
if (s.isNotEmpty()){ // 会有空行
Expand Down

0 comments on commit 01b1a87

Please sign in to comment.