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

    return downloadDir;
  }
Exemplo n.º 2
0
 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);
   }
 }