Skip to content

Commit

Permalink
Shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
p4ymak committed Dec 5, 2021
1 parent 268e9c3 commit efb74e0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ use std::path::PathBuf;

#[derive(Debug)]
struct Settings {
screen_size: RectSize,
width: f32,
preview_size: RectSize,
ratio_string: String,
Expand All @@ -21,7 +20,6 @@ struct Settings {
impl Default for Settings {
fn default() -> Settings {
Settings {
screen_size: RectSize::default(),
width: 512.0,
preview_size: RectSize::default(),
ratio_string: "2 : 1".to_string(),
Expand Down Expand Up @@ -105,6 +103,7 @@ impl epi::App for P3App {
self.packer.update(&[]);
self.counter.reset();

self.shortcuts = true;
self.settings.preview_size = RectSize::by_scale_and_ratio(
&ImageScaling::Preview(self.settings.width),
&self.packer.aspect,
Expand Down

0 comments on commit efb74e0

Please sign in to comment.