From a801dfe19ff8c521db381fa192a08291a391596e Mon Sep 17 00:00:00 2001 From: Agent X <44549182+AgentXLP@users.noreply.github.com> Date: Wed, 3 Jul 2024 20:30:46 -0400 Subject: [PATCH] Make deleting other save slots while hosting possible --- src/pc/djui/djui_panel_host_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pc/djui/djui_panel_host_save.c b/src/pc/djui/djui_panel_host_save.c index 4a8368888..63f1862a3 100644 --- a/src/pc/djui/djui_panel_host_save.c +++ b/src/pc/djui/djui_panel_host_save.c @@ -113,7 +113,7 @@ void djui_panel_host_save_create(struct DjuiBase* caller) { djui_base_set_size(&button2->base, 0.19f, 32); djui_base_set_alignment(&button2->base, DJUI_HALIGN_CENTER, DJUI_VALIGN_TOP); djui_base_set_location(&button2->base, configDjuiThemeCenter ? 127 : button1->rect->base.width.value + 98, 0); - djui_base_set_enabled(&button2->base, gDjuiInMainMenu); + djui_base_set_enabled(&button2->base, gDjuiInMainMenu || gCurrSaveFileNum - 1 != i); struct DjuiButton* button3 = djui_button_create(&rect1->base, DLANG(HOST_SAVE, EDIT), DJUI_BUTTON_STYLE_NORMAL, djui_panel_host_save_edit); button3->base.tag = i;