This commit is contained in:
Observer KRypt0n_ 2023-08-03 19:00:19 +02:00
commit 51d7b2621e
No known key found for this signature in database
GPG key ID: 844DA47BA25FE1E2
3 changed files with 11 additions and 13 deletions

View file

@ -13,7 +13,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Updated Italian
- Updated Japanese
## [1.3.0]
### Fixed
- Fixed logo size in the first run window
## [1.3.0] - 02.08.2023
### Added

View file

@ -28,8 +28,8 @@ impl SimpleAsyncComponent for WelcomeApp {
set_valign: gtk::Align::Center,
set_vexpand: true,
gtk::Image {
set_icon_name: Some(APP_ID),
gtk::Picture {
set_resource: Some(&format!("{APP_RESOURCE_PATH}/icons/hicolor/scalable/apps/{APP_ID}.png")),
set_height_request: 128
},

View file

@ -200,21 +200,15 @@ impl SimpleAsyncComponent for GeneralApp {
&tr!("china")
])),
set_selected: match CONFIG.launcher.edition {
GameEdition::Global => 0,
GameEdition::China => 1
},
set_selected: GameEdition::list().iter()
.position(|edition| edition == &CONFIG.launcher.edition)
.unwrap() as u32,
connect_selected_notify[sender] => move |row| {
if is_ready() {
#[allow(unused_must_use)]
if let Ok(mut config) = Config::get() {
config.launcher.edition = match row.selected() {
0 => GameEdition::Global,
1 => GameEdition::China,
_ => unreachable!()
};
config.launcher.edition = GameEdition::list()[row.selected() as usize];
Config::update(config);