Startup and Shutdown: Fix.

Let's only draw the window when we have content and destroy the
window during shutdown.

This is much prettier.
edi-0.5
Alastair Poole 3 years ago
parent 17d4a53db4
commit c026f9d5ad
  1. 2
      src/main.c
  2. 2
      src/ui.c

@ -33,10 +33,10 @@ _win_add(void)
evas_object_resize(win, 400 * elm_config_scale_get(), 450 * elm_config_scale_get());
elm_win_title_set(win, "System Information");
elm_win_center(win, EINA_TRUE, EINA_TRUE);
evas_object_show(win);
ui = ui_add(win);
evas_object_smart_callback_add(win, "delete,request", _win_del_cb, ui);
evas_object_show(win);
return win;
}

@ -15,7 +15,7 @@ static Eina_Lock _lock;
void
ui_shutdown(Ui *ui)
{
evas_object_hide(ui->win);
evas_object_del(ui->win);
ui->shutting_down = EINA_TRUE;

Loading…
Cancel
Save