Skip to content

Commit 66e5947

Browse files
author
Xiangfu Liu
committedMar 1, 2012
performance: disable all button while compiling patches
1 parent 514c06a commit 66e5947

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed
 

‎src/gui/performance.c

+5
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,7 @@ static int first_event;
197197

198198
static void close_callback(mtk_event *e, void *arg)
199199
{
200+
if(started) return;
200201
mtk_cmd(appid, "w.close()");
201202
}
202203

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

215216
static void simple_callback(mtk_event *e, void *arg)
216217
{
218+
if(started) return;
217219
simple_mode = 1;
218220
update_buttons();
219221
}
220222

221223
static void file_callback(mtk_event *e, void *arg)
222224
{
225+
if(started) return;
223226
simple_mode = 0;
224227
update_buttons();
225228
}
226229

227230
static void dt_callback(mtk_event *e, void *arg)
228231
{
232+
if(started) return;
229233
dt_mode = !dt_mode;
230234
update_buttons();
231235
}
232236

233237
static void as_callback(mtk_event *e, void *arg)
234238
{
239+
if(started) return;
235240
as_mode = !as_mode;
236241
update_buttons();
237242
}

0 commit comments

Comments
 (0)