更新ui逻辑
This commit is contained in:
parent
b4e38e866c
commit
b66a5d9647
@ -205,8 +205,8 @@ public class PluginManagementPane extends BorderPane {
|
||||
var tgl = new ToggleSwitch();
|
||||
|
||||
tgl.addEventHandler(MouseEvent.MOUSE_CLICKED, event -> {
|
||||
// 在这里编写单击 ToggleSwitch 后执行的代码
|
||||
isInstall = true;
|
||||
// 单击 ToggleSwitch 后执行的代码
|
||||
isInstall = !isInstall;
|
||||
|
||||
});
|
||||
// 创建一个图标
|
||||
@ -264,7 +264,7 @@ public class PluginManagementPane extends BorderPane {
|
||||
if (!isInstall) {
|
||||
isInstallItem.setText("安装");
|
||||
isInstallItem.setOnAction(event1 -> {
|
||||
/// TODO: 2023/9/23 插件安装的操作
|
||||
// TODO: 2023/9/23 插件安装的操作
|
||||
|
||||
});
|
||||
state.setText("启用");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user