Commit 92f14e0 1 parent 73cfac6 commit 92f14e0 Copy full SHA for 92f14e0
File tree 1 file changed +5
-1
lines changed
core/src/main/java/com/rappytv/toolwarn/ui
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -258,6 +258,11 @@ private DivWidget initializeManageContainer(ToolWidget toolWidget) {
258
258
259
259
doneButton .setEnabled (true );
260
260
doneButton .setPressable (() -> {
261
+ if (!this .toolWidgets .contains (toolWidget )) {
262
+ this .toolWidgets .add (toolWidget );
263
+ this .toolList .session ().setSelectedEntry (toolWidget );
264
+ }
265
+
261
266
WarnTool tool = toolWidget .getTool ();
262
267
tool .setType (typeDropdown .getSelected ());
263
268
tool .setWarnAt (sliderValue );
@@ -271,7 +276,6 @@ private DivWidget initializeManageContainer(ToolWidget toolWidget) {
271
276
272
277
toolWidget .setTool (tool );
273
278
this .setAction (null );
274
- reload ();
275
279
});
276
280
277
281
buttonList .addEntry (doneButton );
You can’t perform that action at this time.
0 commit comments