WIP adding env variable editing in GUI settings

This commit is contained in:
ALEZ-DEV 2025-05-24 14:53:44 +02:00
parent 0f7fa5ba0d
commit 30e7aa7ca7

View File

@ -1,5 +1,5 @@
use arboard::Clipboard;
use babylonia_terminal_sdk::game_config::GameConfig;
use babylonia_terminal_sdk::{game_config::GameConfig, game_manager::EnvironmentVariable};
use log::error;
use relm4::{
gtk::{
@ -61,6 +61,13 @@ impl SimpleAsyncComponent for SettingsPage {
}
}
}
},
add = &adw::PreferencesGroup {
set_width_request: 500,
set_title: "Environment variables",
set_description: Some("Pass environment variables to tinker the behavior of the game"),
}
}
}
@ -120,3 +127,7 @@ impl SimpleAsyncComponent for SettingsPage {
}
}
}
struct EnvVarWidget {
env_var: EnvironmentVariable,
}