Skip to content

Commit 57cbdec

Browse files
committed
⚡️(coreMindustry/menu) followup菜单不主动调用send (需要Refresh)
1 parent b5b06e5 commit 57cbdec

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scripts/coreMindustry/menu.new.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,10 +176,10 @@ open class MenuV2(
176176
.let { callback.getOrNull(it) } ?: onCancel
177177
try {
178178
callback.invoke()
179-
if (!followup || closed) return
179+
if (closed || !followup) break
180180
} catch (e: RefreshReturn) {
181+
send()
181182
}
182-
send()
183183
}
184184
}
185185

@@ -191,10 +191,10 @@ open class MenuV2(
191191
}?.let { callback.getOrNull(it) } ?: onCancel
192192
try {
193193
callback.invoke()
194-
if (!followup || closed) return
194+
if (closed || !followup) break
195195
} catch (e: RefreshReturn) {
196+
send()
196197
}
197-
send()
198198
}
199199
}
200200

0 commit comments

Comments
 (0)