--- a/application/settings.c Sun Nov 10 09:12:30 2024 +0100 +++ b/application/settings.c Sun Nov 10 15:30:46 2024 +0100 @@ -636,7 +636,7 @@ wdata->obj = obj; settings_init(obj, wdata); - ui_tabview(obj) { + ui_tabview(obj, .tabview = UI_TABVIEW_NAVIGATION_TOP) { ui_tab(obj, "General") { ui_grid(obj, .margin = 10) { ui_label(obj, .label = "TODO"); @@ -768,6 +768,7 @@ ui_passwordfield(obj, .value = wdata->credentials_password, .hexpand = TRUE, .groups = UI_GROUPS(SETTINGS_STATE_CREDENTIALS_SELECTED)); ui_newline(obj); + ui_label(obj, .label = " "); ui_newline(obj); @@ -777,7 +778,12 @@ ui_newline(obj); ui_hbox(obj, .colspan = 2, .vexpand = TRUE, .hexpand = TRUE, .spacing = 10) { - ui_listview(obj, .list = wdata->credentials_locations, .onactivate = credentials_location_edit, .onselection = credentials_location_onselect, .colspan = 2, .fill = UI_ON, .groups = UI_GROUPS(SETTINGS_STATE_CREDENTIALS_SELECTED)); +#ifndef UI_WINUI + ui_callback credentials_activate_callback = credentials_location_edit; +#else + ui_callback credentials_activate_callback = NULL; +#endif + ui_listview(obj, .list = wdata->credentials_locations, .onactivate = credentials_activate_callback, .onselection = credentials_location_onselect, .colspan = 2, .fill = UI_ON, .groups = UI_GROUPS(SETTINGS_STATE_CREDENTIALS_SELECTED)); ui_vbox(obj, .fill = UI_OFF, .spacing = 4) { ui_button(obj, .label = "Add", .onclick = credentials_location_add, .groups = UI_GROUPS(SETTINGS_STATE_CREDENTIALS_SELECTED)); ui_button(obj, .label = "Edit", .onclick = credentials_location_edit, .groups = UI_GROUPS(SETTINGS_STATE_CREDENTIALS_SELECTED, SETTINGS_STATE_CREDENTIALS_LOCATION_SELECTED));