* Add bottles platform

* Add bottles UI

* Only inc create_symlinks on unix
This commit is contained in:
Philip Kristoffersen
2022-09-12 18:32:55 +02:00
committed by GitHub
parent 6e69ff61db
commit e4be4da9e3
8 changed files with 173 additions and 3 deletions
+12 -2
View File
@@ -3,7 +3,7 @@ use eframe::egui;
use egui::ScrollArea;
use crate::{egs::EpicPlatform};
#[cfg(target_family = "unix")]
#[cfg(target_family = "unix")]
use crate::heroic::HeroicPlatform;
use super::{
@@ -39,6 +39,7 @@ impl MyEguiApp {
#[cfg(target_family = "unix")]
{
self.render_heroic_settings(ui);
self.render_bottles_settings(ui);
}
self.render_legendary_settings(ui);
@@ -72,7 +73,16 @@ impl MyEguiApp {
ui.add_space(SECTION_SPACING);
}
#[cfg(target_family = "unix")]
#[cfg(target_family = "unix")]
fn render_bottles_settings(&mut self, ui: &mut egui::Ui) {
ui.heading("Bottles");
ui.checkbox(&mut self.settings.bottles.enabled, "Import from Bottles");
ui.add_space(SECTION_SPACING);
}
#[cfg(target_family = "unix")]
fn render_heroic_settings(&mut self, ui: &mut egui::Ui) {
ui.heading("Heroic");
ui.checkbox(&mut self.settings.heroic.enabled, "Import from Heroic");