Skip to content
This repository
Browse code

SCDoc.prepareHelpForURL: detect if user removed Help folder without r…

…estarting sclang
  • Loading branch information...
commit 292e81d5bb1e0b1c29a924d100b7d3afb42ec84b 1 parent c0f8fa9
Jonatan Liljedahl authored April 01, 2011

Showing 1 changed file with 10 additions and 0 deletions. Show diff stats Hide diff stats

  1. 10  SCClassLibrary/SCDoc/SCDoc.sc
10  SCClassLibrary/SCDoc/SCDoc.sc
@@ -536,6 +536,12 @@ SCDoc {
536 536
         
537 537
     }
538 538
 
  539
+    *cleanStart {
  540
+        didRun = false;
  541
+        didMakeClassTree = false;
  542
+        doc_map = nil;
  543
+    }
  544
+
539 545
     *prepareHelpForURL {|url,doYield=false|
540 546
         var proto, path, anchor;
541 547
         var subtarget, src, c;
@@ -563,6 +569,10 @@ SCDoc {
563 569
         
564 570
         this.findHelpSourceDirs;
565 571
         
  572
+        if(File.exists(helpTargetDir).not) {
  573
+            this.cleanStart;
  574
+        };
  575
+        
566 576
         // sync non-schelp files once every session
567 577
         if(didRun.not) {
568 578
             didRun = true;

0 notes on commit 292e81d

Please sign in to comment.
Something went wrong with that request. Please try again.