Commit e36fa2d4 authored by Ivica Bukvic's avatar Ivica Bukvic
Browse files

fixed remaining bugs with asynchronous nature of various ways to enable edit...

fixed remaining bugs with asynchronous nature of various ways to enable edit mode/cord inspector/tooltips in K12 mode
parent 620f1e29
......@@ -4890,11 +4890,12 @@ void canvas_magicglass(t_canvas *x, t_floatarg fyesplease)
void canvas_tooltips(t_canvas *x, t_floatarg fyesplease)
{
//fprintf(stderr,"canvas_tooltips %f\n", fyesplease);
int yesplease = fyesplease;
if (yesplease && tooltips)
return;
if (!tooltips) {
canvas_editmode(x, 1.);
if (!sys_k12_mode) canvas_editmode(x, 1.);
tooltips = 1;
}
else {
......
......@@ -1800,7 +1800,7 @@ proc menu_magicglass {name} {
proc menu_editmode {name} {
global k12_mode
pd [concat $name editmode 0 \;]
if { $k12_mode == 1 } { menu_tooltips $name }
#if { $k12_mode == 1 } { menu_tooltips $name }
}
proc menu_tooltips {name} {
......@@ -2970,7 +2970,7 @@ proc pdtk_canvas_new {name width height geometry editable} {
bind $name <FocusIn> "menu_fixeditmenu $name"
# bind $name <FocusOut> { pdtk_noselect %W }
if { $k12_mode == 1 && $editable } { menu_tooltips $name }
if { $k12_mode == 1 } { menu_tooltips $name }
focus $name.c
if { $k12_mode == 1 && $k12_saveas_on_new == 1 } {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment