Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
Open Drive in browser
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldieeins committed Aug 15, 2024
1 parent 37cb26a commit 25ee73e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application-main/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
</parent>

<artifactId>application-main</artifactId>
<version>2024.8.1-beta.3</version>
<name>Solus Lupus (2.0.0-build370)</name>
<version>2024.8.1-beta.4</version>
<name>Solus Lupus (2.0.0-build371)</name>

<properties>
<maven.compiler.source>17</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,8 @@ private void open(String request) {
private void load(String request) {
switch (request) {
case "drive" ->
frame.getBrowser().loadURL("https://drive.zyneonstudios.com/app/?theme=" + ApplicationStorage.theme + "&language=" + ApplicationStorage.language);
open("url.https://drive.zyneonstudios.com");
//frame.getBrowser().loadURL("https://drive.zyneonstudios.com/app/?theme=" + ApplicationStorage.theme + "&language=" + ApplicationStorage.language);
case "discover" ->
frame.getBrowser().loadURL(ApplicationStorage.urlBase + ApplicationStorage.language + "/discover.html");
case "downloads" ->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,18 @@ public void start() {
executor.scheduleAtFixedRate(() -> CompletableFuture.runAsync(this::run), 0, 1, TimeUnit.SECONDS);
}

int c = 0;
protected void run() {
if (!started) {
started = true;
return;
}

if(c == 300) {
c = 0;
System.gc();
}


if (downloading != null) {
Download download = app.getDownloadManager().getDownloads().get(downloading);
Expand Down

0 comments on commit 25ee73e

Please sign in to comment.