diff --git a/Guify/src/code/Constants.java b/Guify/src/code/Constants.java index e5fe30a..ef41dbb 100644 --- a/Guify/src/code/Constants.java +++ b/Guify/src/code/Constants.java @@ -4,8 +4,8 @@ import java.awt.Color; public class Constants { public static final String APP_NAME = "Guify"; - public static final String VERSION = "1.0"; - public static final int VERSION_PROGRESSIVE = 0; + public static final String VERSION = "1.0.1"; + public static final int VERSION_PROGRESSIVE = 1; public static class Constants_FSOperations{ public static final int NONE = 0; diff --git a/Guify/src/controllers/DesktopController.java b/Guify/src/controllers/DesktopController.java index 71dce70..ac5161c 100644 --- a/Guify/src/controllers/DesktopController.java +++ b/Guify/src/controllers/DesktopController.java @@ -7,6 +7,7 @@ import com.jcraft.jsch.SftpException; import code.Constants; import code.Constants.Constants_FSOperations; import code.GuiAbstractions.Implementations.JFrameFactory; +import controllers.LoginController.LoginCredentials; import views.interfaces.IDesktopFrame; import code.TreeNode; import code.Helper; @@ -430,6 +431,13 @@ public class DesktopController { frame.setVisible(show); } + public String getTitle() { + StringBuilder title = new StringBuilder(Constants.APP_NAME); + title.append(" - "); + title.append(LoginCredentials.host); + return title.toString(); + } + /* * ========== END Other ========== */ diff --git a/Guify/src/views/Desktop.java b/Guify/src/views/Desktop.java index 2d4c94c..6673423 100644 --- a/Guify/src/views/Desktop.java +++ b/Guify/src/views/Desktop.java @@ -89,7 +89,7 @@ public class Desktop extends JFrame implements IDesktopFrame { setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 1280, 720); getContentPane().setLayout(null); - setTitle(Constants.APP_NAME); + setTitle(this.controller.getTitle()); treePanel = new JScrollPane(); treePanel.setBounds(0, 36, 150, 634);