Skip to content

Commit d758a56

Browse files
committed
Move panel uninitialization
We must be sure that the uninitialization of the panel is done before quitting. Calling it in IgorBeforeQuitHook works more reliable.
1 parent 9ba295b commit d758a56

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

procedures/CodeBrowser_hooks.ipf

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ static Function IgorBeforeQuitHook(unsavedExp, unsavedNotebooks, unsavedProcedur
1212
string expName
1313

1414
preparePanelClose()
15+
markAsUnInitialized()
1516

1617
if(unsavedExp || unsavedNotebooks || unsavedProcedures)
1718
return 0
@@ -41,14 +42,6 @@ static Function IgorBeforeNewHook(igorApplicationNameStr)
4142
return 0
4243
End
4344

44-
static Function BeforeExperimentSaveHook(rN,fileName,path,type,creator,kind)
45-
Variable rN,kind
46-
String fileName,path,type,creator
47-
48-
markAsUnInitialized()
49-
return 0
50-
End
51-
5245
Function initializePanel()
5346

5447
debugprint("called")

0 commit comments

Comments
 (0)