Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/start-popup' into start-popup
Browse files Browse the repository at this point in the history
  • Loading branch information
aless2003 committed Jan 2, 2024
2 parents 5266ed5 + aca2bc6 commit d53f34c
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;

import lombok.Getter;
import lombok.Setter;
import online.hatsunemiku.tachideskvaadinui.data.settings.reader.ReaderSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@

package online.hatsunemiku.tachideskvaadinui.services;

import feign.RetryableException;
import java.net.URI;
import java.util.concurrent.TimeUnit;

import feign.RetryableException;
import lombok.extern.slf4j.Slf4j;
import online.hatsunemiku.tachideskvaadinui.services.client.LibUpdateClient;
import org.springframework.cache.annotation.CacheEvict;
Expand Down Expand Up @@ -37,7 +36,6 @@ public boolean fetchUpdate() {

URI baseUrl = URI.create(settings.getUrl());


ResponseEntity<Void> response;
try {
response = client.fetchUpdate(baseUrl);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.net.URI;
import javax.swing.*;
import lombok.extern.slf4j.Slf4j;
import online.hatsunemiku.tachideskvaadinui.data.settings.Settings;
import online.hatsunemiku.tachideskvaadinui.services.SettingsService;
Expand All @@ -27,8 +28,6 @@
import org.springframework.stereotype.Service;
import org.springframework.util.ResourceUtils;

import javax.swing.*;

@Service
@Slf4j
public class TrayHandler {
Expand Down Expand Up @@ -113,8 +112,8 @@ private PopupMenu createTrayMenu() {
private void showPopup() {
Settings settings = settingsService.getSettings();

if (!settings.isStartPopup()){
return;
if (!settings.isStartPopup()) {
return;
}

String title = "Tachidesk VaadinUI started";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@

package online.hatsunemiku.tachideskvaadinui.utils;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.awt.*;
import java.io.IOException;
import java.net.URI;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BrowserUtils {

Expand Down Expand Up @@ -40,7 +39,7 @@ public static void openBrowser(String url) throws IOException {
} catch (IOException e) {
log.error("Browser couldn't be opened", e);
} catch (InterruptedException e) {
throw new RuntimeException(e);
throw new RuntimeException(e);
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import com.vaadin.flow.component.orderedlayout.VerticalLayout;
import com.vaadin.flow.component.progressbar.ProgressBar;
import com.vaadin.flow.router.Route;
import feign.FeignException;
import java.util.Optional;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
import com.vaadin.flow.router.Route;
import java.util.ArrayList;
import java.util.List;

import online.hatsunemiku.tachideskvaadinui.data.settings.Settings;
import online.hatsunemiku.tachideskvaadinui.data.settings.event.SettingsEventPublisher;
import online.hatsunemiku.tachideskvaadinui.data.tachidesk.Source;
Expand Down

0 comments on commit d53f34c

Please sign in to comment.