Example #1
0
  public static File getDownloadDirectory() {
    if (downloadDir == null) {
      downloadDir = new File(Settings.getParameter("downloadfolder"));
    }

    return downloadDir;
  }
 public TVSerieInfoSchede(DefaultGui gui, TMDBScheda f) {
   super();
   back = gui;
   scheda = f;
   if (Settings.getBoolean("servercollaborate")) {
     syncRunning = true;
     Runnable r =
         new Runnable() {
           public void run() {
             NewServerQuery.loadFileOfSchede(scheda);
             syncRunning = false;
             downloads.setVisible(!syncRunning);
             sync.setVisible(syncRunning);
           }
         };
     ThreadManager.submitCacheTask(r);
   }
 }