Add the Help > About Graphite dialog with build info

Closes #404
This commit is contained in:
Keavon Chambers
2021-12-16 02:31:41 -08:00
parent 7681efa056
commit c2195c2819
12 changed files with 82 additions and 11 deletions

View File

@@ -25,6 +25,7 @@ pub enum DocumentsMessage {
CloseActiveDocumentWithConfirmation,
CloseAllDocumentsWithConfirmation,
CloseAllDocuments,
RequestAboutGraphiteDialog,
NewDocument,
OpenDocument,
OpenDocumentFile(String, String),
@@ -124,6 +125,9 @@ impl MessageHandler<DocumentsMessage, &InputPreprocessor> for DocumentsMessageHa
use DocumentMessage::*;
use DocumentsMessage::*;
match message {
RequestAboutGraphiteDialog => {
responses.push_back(FrontendMessage::DisplayAboutGraphiteDialog.into());
}
Document(message) => self.active_document_mut().process_action(message, ipp, responses),
SelectDocument(index) => {
// NOTE: Potentially this will break if we ever exceed 56 bit values due to how the message parsing system works.