Skip to content

Commit

Permalink
Save size value to config when do not auto resize
Browse files Browse the repository at this point in the history
  • Loading branch information
Moeweb647252 committed Sep 23, 2024
1 parent 9e61d1f commit 64163dd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "desktop_lyric"
version = "0.1.1"
version = "0.1.2"
edition = "2021"
license = "MIT OR Apache-2.0"
description = "Desktop lyric application for linux"
Expand Down
2 changes: 2 additions & 0 deletions src/ui/lyric.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ impl DesktopLyricApp {
"Container size: {:?}, Screen size: {:?}",
resp.rect.max, screen_rect
);
self.config.default_size.x = resp.rect.max.x + 20.0;
self.config.default_size.y = resp.rect.max.y + 10.0;
ctx.send_viewport_cmd(ViewportCommand::InnerSize(Vec2::new(
resp.rect.max.x + 20.0,
resp.rect.max.y + 10.0,
Expand Down

0 comments on commit 64163dd

Please sign in to comment.