Skip to content

833 add warning if connected to aircraft and try to quit fgcs#840

Merged
ProgramPhantom merged 12 commits into
mainfrom
833-add-warning-if-connected-to-aircraft-and-try-to-quit-fgcs
Nov 23, 2025
Merged

833 add warning if connected to aircraft and try to quit fgcs#840
ProgramPhantom merged 12 commits into
mainfrom
833-add-warning-if-connected-to-aircraft-and-try-to-quit-fgcs

Conversation

@ProgramPhantom
Copy link
Copy Markdown
Contributor

Added a new modal in the toolbar.jsx file, and connected it up to a new application slice in the redux store. Currently it only stores the state for this modal but it will probably be useful in the future.

Popup simply requests the user reconsiders closing the application, but only when the drone is connected. A further suggestion like "something bad may happen to the drone" etc etc may be added to this area.

image

@ProgramPhantom ProgramPhantom requested a review from a team November 8, 2025 12:21
@ProgramPhantom ProgramPhantom self-assigned this Nov 8, 2025
@ProgramPhantom ProgramPhantom linked an issue Nov 8, 2025 that may be closed by this pull request
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
Comment thread gcs/src/redux/slices/applicationSlice.js Outdated
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
Comment thread gcs/src/components/toolbar/toolbar.jsx Outdated
@ProgramPhantom
Copy link
Copy Markdown
Contributor Author

Made the changes. Looks like there's some conflict because I took ages. Should I try to fix it?

@ProgramPhantom
Copy link
Copy Markdown
Contributor Author

ProgramPhantom commented Nov 17, 2025

Oh hold on there's one more problem. No idea what this is complaining about have you seen it before?
image

When I created a separate file for the confirm close modal, I initially had it as "ConfirmExitModal.jsx". I then changed it to "confirmExitModal.jsx" when I noticed that was the name scheme for jsx files, then this error appeared where I was importing it in toolbar.jsx.

@ProgramPhantom
Copy link
Copy Markdown
Contributor Author

Nevermind it seems to have magically fixed after restarting my IDE!

Copy link
Copy Markdown
Member

@1Blademaster 1Blademaster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Works for me 👍

@ProgramPhantom ProgramPhantom merged commit 5db9299 into main Nov 23, 2025
6 checks passed
@ProgramPhantom ProgramPhantom deleted the 833-add-warning-if-connected-to-aircraft-and-try-to-quit-fgcs branch November 23, 2025 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add warning if connected to aircraft and try to quit fgcs

3 participants