Skip to content

Commit

Permalink
QoL improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeBarlow committed Nov 2, 2024
1 parent 1baa676 commit 01f2f0e
Show file tree
Hide file tree
Showing 13 changed files with 188 additions and 62 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ lib-cov
coverage
*.lcov

.vs
# nyc test coverage
.nyc_output

Expand Down
6 changes: 6 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@
"presentation": {
"hidden": true
}
},
{
"type": "lldb",
"request": "attach",
"name": "Debug Electron Renderer",
"pid": "${command:pickProcess}"
}
],
"compounds": [
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"files.associations": {
"xstring": "cpp"
}
}
138 changes: 124 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const AddStationModal: React.FC<AddStationModalProps> = ({ closeModal }) => {
<div className="modal-dialog settingsModal" role="document">
<div className="modal-content" style={{ border: '0' }}>
<div className="modal-header">
<h5 className="modal-title">AFV Configuration</h5>
<h5 className="modal-title">New Ration</h5>
</div>
<div
className="modal-body"
Expand All @@ -48,7 +48,7 @@ const AddStationModal: React.FC<AddStationModalProps> = ({ closeModal }) => {

<div className="modal-footer mt-3">
<button type="button" className="btn btn-danger " onClick={closeHander}>
Close
Cancel
</button>
</div>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/renderer/src/components/bootstrap.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ const Bootsrap: React.FC = () => {
});

window.api.on('VoiceDisconnected', () => {
console.log('Voice disconnected');
useSessionStore.getState().setIsConnecting(false);
useSessionStore.getState().setIsConnected(false);
useRadioState.getState().reset();
Expand All @@ -137,6 +138,7 @@ const Bootsrap: React.FC = () => {
});

window.api.on('network-disconnected', () => {
console.log('Network connected');
useSessionStore.getState().setNetworkConnected(false);
useSessionStore.getState().setCallsign('');
useSessionStore.getState().setIsAtc(false);
Expand Down
Loading

0 comments on commit 01f2f0e

Please sign in to comment.