Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add FileSelection Widget #83

Merged
merged 10 commits into from
Dec 21, 2023
Merged

Add FileSelection Widget #83

merged 10 commits into from
Dec 21, 2023

Conversation

AlexKnauth
Copy link
Contributor

@AlexKnauth AlexKnauth commented Dec 11, 2023

A companion PR to LiveSplit/livesplit-core#748.

Adds a FileSelection type that implements the Widget trait such that an auto-splitter can put it in their settings gui like this:

#[derive(Gui)]
pub struct SettingsGui {
    /// General Settings
    _general_settings: Title,
    /// Select a text file
    #[filter = "*.txt"]
    text_file: FileSelection,
}

@AlexKnauth AlexKnauth changed the title File selection Add FileSelection Widget Dec 12, 2023
@CryZe CryZe merged commit a462bff into LiveSplit:master Dec 21, 2023
4 checks passed
@CryZe CryZe added the enhancement New feature or request label Dec 21, 2023
@AlexKnauth AlexKnauth deleted the file-selection branch December 21, 2023 16:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants