Skip to content

Commit

Permalink
More subtle UI cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
shadowmoose committed Oct 21, 2020
1 parent 1ad3f61 commit f4cd57c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion web-ui/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const App = observer(() => {
onSubmit={setName}
onCancel={setName}
/>;
} else if (!controller.ready && connection.netMode.get() === NetworkMode.UNKNOWN) {
} else if (!controller.ready) {
content = <Backdrop open={true} transitionDuration={0}>
<Typography variant="h1" component="h2" gutterBottom>
Loading <CircularProgress color="inherit" />
Expand Down
1 change: 1 addition & 0 deletions web-ui/src/game/controllers/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export default class GameController {
});
window.addEventListener("beforeunload", () => {
connection.kill();
this.ready = false;
})
}

Expand Down
2 changes: 1 addition & 1 deletion web-ui/src/ui-components/campaignSelector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export const CampaignSelector = observer((props: {controller: GameController}) =
>
Restore
</Button>
<h2>Google Drive:</h2>
<DialogTitle>Google Drive:</DialogTitle>
<Button
variant="contained"
color="primary"
Expand Down

0 comments on commit f4cd57c

Please sign in to comment.