mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 10:12:02 +08:00
add some
This commit is contained in:
parent
68dc8bc671
commit
9a4e1a266a
@ -53,7 +53,7 @@ func _config_only(v ice.Any, arg ...string) bool {
|
|||||||
func _config_save(m *ice.Message, name string, arg ...string) {
|
func _config_save(m *ice.Message, name string, arg ...string) {
|
||||||
data, msg := ice.Map{}, m.Spawn(m.Source())
|
data, msg := ice.Map{}, m.Spawn(m.Source())
|
||||||
for _, k := range arg {
|
for _, k := range arg {
|
||||||
if v := mdb.Confv(msg, k); _config_only(v, mdb.META) && _config_only(kit.Value(v, mdb.META), mdb.IMPORTANT, mdb.SHORT, mdb.FIELD, mdb.FIELDS, mdb.ACTION, mdb.SORT, mdb.TOOLS) {
|
if v := mdb.Confv(msg, k); _config_only(v, mdb.META) && _config_only(kit.Value(v, mdb.META), mdb.SHORT, mdb.FIELD, mdb.FIELDS, mdb.ACTION, mdb.SORT, mdb.TOOLS) {
|
||||||
continue
|
continue
|
||||||
} else {
|
} else {
|
||||||
data[k] = v
|
data[k] = v
|
||||||
|
@ -190,7 +190,10 @@ func ZoneAction(arg ...ice.Any) ice.Actions {
|
|||||||
}
|
}
|
||||||
func ExportZoneAction(arg ...ice.Any) ice.Actions {
|
func ExportZoneAction(arg ...ice.Any) ice.Actions {
|
||||||
return ice.MergeActions(ZoneAction(arg...), ice.Actions{
|
return ice.MergeActions(ZoneAction(arg...), ice.Actions{
|
||||||
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) { Config(m, IMPORTANT, ice.TRUE); ZoneImport(m, arg) }},
|
ice.CTX_INIT: {Hand: func(m *ice.Message, arg ...string) {
|
||||||
|
Config(m, IMPORTANT, ice.TRUE)
|
||||||
|
ZoneImport(m, arg)
|
||||||
|
}},
|
||||||
ice.CTX_EXIT: {Hand: func(m *ice.Message, arg ...string) { m.OptionFields(""); ZoneExport(m, arg) }},
|
ice.CTX_EXIT: {Hand: func(m *ice.Message, arg ...string) { m.OptionFields(""); ZoneExport(m, arg) }},
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user