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 Italian
|
||||||
- Updated Japanese
|
- Updated Japanese
|
||||||
|
|
||||||
## [1.3.0]
|
### Fixed
|
||||||
|
|
||||||
|
- Fixed logo size in the first run window
|
||||||
|
|
||||||
|
## [1.3.0] - 02.08.2023
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@ impl SimpleAsyncComponent for WelcomeApp {
|
||||||
set_valign: gtk::Align::Center,
|
set_valign: gtk::Align::Center,
|
||||||
set_vexpand: true,
|
set_vexpand: true,
|
||||||
|
|
||||||
gtk::Image {
|
gtk::Picture {
|
||||||
set_icon_name: Some(APP_ID),
|
set_resource: Some(&format!("{APP_RESOURCE_PATH}/icons/hicolor/scalable/apps/{APP_ID}.png")),
|
||||||
set_height_request: 128
|
set_height_request: 128
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -200,21 +200,15 @@ impl SimpleAsyncComponent for GeneralApp {
|
||||||
&tr!("china")
|
&tr!("china")
|
||||||
])),
|
])),
|
||||||
|
|
||||||
set_selected: match CONFIG.launcher.edition {
|
set_selected: GameEdition::list().iter()
|
||||||
GameEdition::Global => 0,
|
.position(|edition| edition == &CONFIG.launcher.edition)
|
||||||
GameEdition::China => 1
|
.unwrap() as u32,
|
||||||
},
|
|
||||||
|
|
||||||
connect_selected_notify[sender] => move |row| {
|
connect_selected_notify[sender] => move |row| {
|
||||||
if is_ready() {
|
if is_ready() {
|
||||||
#[allow(unused_must_use)]
|
#[allow(unused_must_use)]
|
||||||
if let Ok(mut config) = Config::get() {
|
if let Ok(mut config) = Config::get() {
|
||||||
config.launcher.edition = match row.selected() {
|
config.launcher.edition = GameEdition::list()[row.selected() as usize];
|
||||||
0 => GameEdition::Global,
|
|
||||||
1 => GameEdition::China,
|
|
||||||
|
|
||||||
_ => unreachable!()
|
|
||||||
};
|
|
||||||
|
|
||||||
Config::update(config);
|
Config::update(config);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue