Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
load dmx config when open window not close
Signed-off-by: Xiangfu Liu <xiangfu@sharism.cc>
  • Loading branch information
Xiangfu Liu committed Dec 6, 2011
1 parent 77a79b5 commit bc4c452
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/gui/dmx.c
Expand Up @@ -140,7 +140,6 @@ static void close_callback(mtk_event *e, void *arg)
close_dmxspy_window();
close_dmxdesk_window();
mtk_cmd(appid, "w.close()");
load_dmx_config();
}

void init_dmx()
Expand Down Expand Up @@ -209,13 +208,12 @@ void init_dmx()
mtk_bind(appid, "b_ok", "commit", ok_callback, NULL);
mtk_bind(appid, "b_cancel", "commit", close_callback, NULL);
mtk_bind(appid, "w", "close", close_callback, NULL);

load_dmx_config();
}

void open_dmx_window()
{
if(w_open) return;
w_open = 1;
load_dmx_config();
mtk_cmd(appid, "w.open()");
}

0 comments on commit bc4c452

Please sign in to comment.