@@ -712,16 +712,23 @@ function ResetViewButtonPressed(hObj, eventdata, handles) %#ok<DEFNU>
712712
713713 myData = handles .myData ;
714714 taskinfo = myData.tasks_out{myData .iter };
715- set(handles .NextButton ,' Enable' , ' off' );
716715 % Redraw the Image from the Temporary Image Folder
717- taskimage_load(hObj );
716+ % taskimage_load(hObj);
718717 handles = guidata(hObj );
719718
720719 switch myData .mode_desc
721720 case ' MicroRT'
722721
723722 target_pos = [taskinfo .stage_x , taskinfo .stage_y ];
723+ currentNextStatus = get(handles .NextButton ,' enable' );
724+ set(handles .NextButton ,' enable' ,' off' );
725+ set(handles .Fast_Register_Button ,' enable' ,' off' );
726+ set(handles .Best_Register_Button ,' enable' ,' off' );
724727 handles.myData.stage = stage_move(handles .myData .stage ,target_pos ,handles .myData .stage .handle );
728+ set(handles .NextButton ,' enable' ,currentNextStatus );
729+ set(handles .Fast_Register_Button ,' enable' ,' on' );
730+ set(handles .Best_Register_Button ,' enable' ,' on' );
731+
725732 end
726733
727734 % myData.tasks_out{myData.iter} = taskinfo;
@@ -1150,6 +1157,13 @@ function Reticlebutton_Callback(hObject, eventdata, handles)
11501157end
11511158guidata(handles .GUI , handles );
11521159taskimage_load(hObject );
1153- set(handles .NextButton ,' Enable' , ' off' );
1160+ handles = guidata(hObject );
1161+ st = dbstack ;
1162+ taskinfo = handles.myData.tasks_out{handles .myData .iter };
1163+ taskinfo.calling_function = st(1 ).name;
1164+ handles.myData.taskinfo = taskinfo ;
1165+ guidata(handles .GUI , handles );
1166+ taskinfo .task_handle(handles .GUI );
1167+ % set(handles.NextButton,'Enable', 'off');
11541168
11551169end
0 commit comments