File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,7 @@ static int first_event;
197
197
198
198
static void close_callback (mtk_event * e , void * arg )
199
199
{
200
+ if (started ) return ;
200
201
mtk_cmd (appid , "w.close()" );
201
202
}
202
203
@@ -214,24 +215,28 @@ static void update_buttons(void)
214
215
215
216
static void simple_callback (mtk_event * e , void * arg )
216
217
{
218
+ if (started ) return ;
217
219
simple_mode = 1 ;
218
220
update_buttons ();
219
221
}
220
222
221
223
static void file_callback (mtk_event * e , void * arg )
222
224
{
225
+ if (started ) return ;
223
226
simple_mode = 0 ;
224
227
update_buttons ();
225
228
}
226
229
227
230
static void dt_callback (mtk_event * e , void * arg )
228
231
{
232
+ if (started ) return ;
229
233
dt_mode = !dt_mode ;
230
234
update_buttons ();
231
235
}
232
236
233
237
static void as_callback (mtk_event * e , void * arg )
234
238
{
239
+ if (started ) return ;
235
240
as_mode = !as_mode ;
236
241
update_buttons ();
237
242
}
You can’t perform that action at this time.
0 commit comments