Skip to content

Custom start message#161

Merged
crwood merged 8 commits into
masterfrom
custom-start-message
Mar 7, 2019
Merged

Custom start message#161
crwood merged 8 commits into
masterfrom
custom-start-message

Conversation

@crwood

@crwood crwood commented Mar 7, 2019

Copy link
Copy Markdown
Member

This PR adds support for (optionally) displaying a popup message to the user when first launching the application. Specifically, with this change, Gridsync will check for a [message] section in config.txt when starting up and, if it is found, display a QMessageBox to the user with the title, text, and (icon) type specified by that section (where type is one of "information", "warning", or "critical") -- for example:

[message]
type = information
title = Cat Fact 8413 
text = Cats have been domesticated for around 4,000 years

Silly example aside, the purpose of this change is to allow whitelabel/rebranded distributions of Gridsync to display custom messages/reminders to their users (for example, about where to obtain an invite code or about who to contact for further help/support). Because this feature can constitute an annoyance, however, users can choose to suppress subsequent messages by checking/ticking the "Do not show this message again" checkbox inside the initial message box.

@crwood crwood merged commit 6194815 into master Mar 7, 2019
@crwood crwood deleted the custom-start-message branch March 7, 2019 03:56
@crwood crwood mentioned this pull request Mar 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant