Skip to content

Commit

Permalink
Changed server status tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
benchdoos committed Aug 9, 2018
1 parent dea8c07 commit b97bd12
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -252,9 +252,9 @@ private void updateStatusLabel() {
boolean isServerOnline = ClientBackgroundService.getInstance().isConnected();
boolean isFtpOnline = ftpUtils != null && ftpUtils.isConnected();
boolean isSessionOnline = ClientBackgroundService.getInstance().isDBAvailable();
String serverInfo = isServerOnline ? "Сервер подключён" : "Сервер отключён";
String ftpInfo = isFtpOnline ? "FTP подключён" : "FTP отключён";
String sessionInfo = isSessionOnline ? "БД подключена" : "БД отключена";
String serverInfo = isServerOnline ? "Сервер онлайн" : "Сервер оффлайн";
String ftpInfo = isFtpOnline ? "FTP онлайн" : "FTP оффлайн";
String sessionInfo = isSessionOnline ? "БД онлайн" : "БД оффлайн";
statusLabel.setToolTipText(serverInfo + " | " + ftpInfo + " | " + sessionInfo);

updateStatusLabelIcon(isServerOnline, isFtpOnline, isSessionOnline);
Expand Down

0 comments on commit b97bd12

Please sign in to comment.