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:
Philip Kristoffersen
2022-05-28 19:10:51 +02:00
committed by GitHub
parent b426201695
commit a5fa774fd3
10 changed files with 124 additions and 3 deletions
+15
View File
@@ -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");