mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 05:53:41 +02:00
Add features to add flatpak apps on linux (#161)
* Add features to add flatpak apps on linux * Fix build on windows
This commit is contained in:
@@ -49,12 +49,27 @@ impl MyEguiApp {
|
||||
{
|
||||
self.render_amazon_settings(ui);
|
||||
}
|
||||
|
||||
|
||||
#[cfg(target_family = "unix")]
|
||||
{
|
||||
self.render_flatpak_settings(ui);
|
||||
}
|
||||
|
||||
|
||||
ui.add_space(SECTION_SPACING);
|
||||
ui.label(format!("Version: {}", VERSION));
|
||||
});
|
||||
}
|
||||
|
||||
fn render_flatpak_settings(&mut self, ui: &mut egui::Ui) {
|
||||
ui.heading("Flatpak");
|
||||
ui.checkbox(&mut self.settings.flatpak.enabled, "Import from Flatpak");
|
||||
|
||||
ui.add_space(SECTION_SPACING);
|
||||
}
|
||||
|
||||
|
||||
fn render_heroic_settings(&mut self, ui: &mut egui::Ui) {
|
||||
ui.heading("Heroic");
|
||||
ui.checkbox(&mut self.settings.heroic.enabled, "Import from Heroic");
|
||||
|
||||
Reference in New Issue
Block a user