@@ -60,7 +60,7 @@ public class MainController {
6060 @ FXML
6161 private CheckBox othersCK ;
6262 @ FXML
63- private Button toogleCrawling ;
63+ private Button toggleCrawling ;
6464 @ FXML
6565 private TextField numsTF ;
6666 @ FXML
@@ -189,7 +189,7 @@ public void toCrawl() {
189189 if (crawling ) {
190190 // 暂停爬虫
191191 crawling = false ;
192- toogleCrawling .setText (Values .CRAWLER_START );
192+ toggleCrawling .setText (Values .CRAWLER_START );
193193 statusLabel .setText ("crawler suspend" );
194194 App .controller .shutdown ();
195195 } else {
@@ -204,7 +204,7 @@ public void toCrawl() {
204204 return ;
205205 }
206206 crawling = true ;
207- toogleCrawling .setText (Values .CRAWLER_STOP );
207+ toggleCrawling .setText (Values .CRAWLER_STOP );
208208 logger .info ("start to crawl urls: " + crawlUrl .getText ());
209209 statusLabel .setText ("starting......" );
210210 // 读取爬虫配置
@@ -251,7 +251,7 @@ private void finished(boolean start) {
251251 statusLabel .setText ("start error" );
252252 }
253253 crawling = false ;
254- toogleCrawling .setText (Values .CRAWLER_START );
254+ toggleCrawling .setText (Values .CRAWLER_START );
255255 if (CrawlConfig .getRepeatCrawl ().get ()) {
256256 repeatCrawl ();
257257 }
@@ -302,7 +302,7 @@ public void reset() {
302302 logOut .clear ();
303303 crawlUrl .clear ();
304304 crawling = false ;
305- toogleCrawling .setText (Values .CRAWLER_START );
305+ toggleCrawling .setText (Values .CRAWLER_START );
306306 App .visitUrls .clear ();
307307 App .downloadUrls .clear ();
308308 App .initThreadPool ();
0 commit comments