Skip to content

Commit

Permalink
performance: disable all button while compiling patches
Browse files Browse the repository at this point in the history
Xiangfu Liu committed Mar 1, 2012
1 parent 514c06a commit 66e5947
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/performance.c
Original file line number Diff line number Diff line change
@@ -197,6 +197,7 @@ static int first_event;

static void close_callback(mtk_event *e, void *arg)
{
if(started) return;
mtk_cmd(appid, "w.close()");
}

@@ -214,24 +215,28 @@ static void update_buttons(void)

static void simple_callback(mtk_event *e, void *arg)
{
if(started) return;
simple_mode = 1;
update_buttons();
}

static void file_callback(mtk_event *e, void *arg)
{
if(started) return;
simple_mode = 0;
update_buttons();
}

static void dt_callback(mtk_event *e, void *arg)
{
if(started) return;
dt_mode = !dt_mode;
update_buttons();
}

static void as_callback(mtk_event *e, void *arg)
{
if(started) return;
as_mode = !as_mode;
update_buttons();
}

0 comments on commit 66e5947

Please sign in to comment.