Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions electron-app/src/windows/mainWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const appPath = getAppPath();
// Store the main window instance
let mainWindow = null;
// Track the currently loaded view
let currentView = "testing-view";
let currentView = "competition-view";

/**
* Creates and initializes the main application window.
Expand Down Expand Up @@ -93,10 +93,13 @@ function loadView(view) {
// Load the view HTML file
mainWindow.loadFile(viewPath);
// Update window title based on view type
const titles = {
"competition-view": "Competition View",
"testing-view": "Testing View",
"flashing-view": "Flashing View",
};
mainWindow.setTitle(
`Hyperloop Control Station - ${
view === "control-station" ? "Competition View" : "Testing View"
}`
`Hyperloop Control Station - ${titles[view] ?? view}`,
);
} else {
// Log error and show dialog if view not found
Expand Down
Loading