change name to Close and remove cancel --< move it to submitdata

This commit is contained in:
hiddify
2024-10-01 08:12:54 +02:00
parent c7a7c14c2e
commit 5df3c5bc59

View File

@@ -15,8 +15,7 @@ import (
type Extension interface {
GetUI() ui.Form
SubmitData(button string, data map[string]string) error
Cancel() error
Stop() error
Close() error
UpdateUI(form ui.Form) error
BeforeAppConnect(hiddifySettings *config.HiddifyOptions, singconfig *option.Options) error
@@ -91,7 +90,7 @@ func (e *Base[T]) ShowMessage(title string, msg string) error {
Fields: [][]ui.FormField{
{{
Type: ui.FieldButton,
Key: ui.Button_Ok,
Key: ui.ButtonDialogOk,
Label: "Ok",
}},
},