Merge branch 'next' of https://github.com/an-anime-team/an-anime-game-launcher into next
This commit is contained in:
commit
51d7b2621e
3 changed files with 11 additions and 13 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
},
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue