From dd0b67694ff464d368e6e6dfb17d37fc7e1bf34a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sat, 04 Nov 2017 15:49:02 -0400 Subject: about:profiles: Disable "Make Default" button on default profile --- diff --git a/src/schemes/about/profiles.c b/src/schemes/about/profiles.c index e2522aa..842ae1c 100644 --- a/src/schemes/about/profiles.c +++ b/src/schemes/about/profiles.c @@ -54,7 +54,8 @@ generate_div(MqProfiles *profiles, gchar *id) mq_profile_icon_new(mq_profiles_get_color(profiles, id)), mq_html_container("span", NULL, name, NULL), mq_html_input_text(name_str, NULL, name), - mq_html_submit(default_str, "Make Default", FALSE/*TODO*/), + mq_html_submit(default_str, "Make Default", + mq_profiles_is_default(profiles, id)), mq_html_submit(delete_str, "Delete", FALSE), mq_html_label(editing_str, "Edit", FALSE), mq_html_submit(save_str, "Save", FALSE), -- cgit v0.9.1