mirror of
https://github.com/ALEZ-DEV/Babylonia-terminal.git
synced 2025-12-15 00:48:52 +00:00
WIP adding env variable editing in GUI settings
This commit is contained in:
parent
0f7fa5ba0d
commit
30e7aa7ca7
@ -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,
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user