Skip to content
This repository has been archived by the owner on Jun 8, 2022. It is now read-only.

Commit

Permalink
fix Device Window shown when on images
Browse files Browse the repository at this point in the history
  • Loading branch information
TheSwerik committed May 8, 2020
1 parent 0bb6608 commit df2068a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Inno Config.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
; Variables:
#define MyAppName "RedEye"
#define MyAppVersion "1.1.2"
#define MyAppVersion "1.1.3"
#define MyAppPublisher "Swerik"
#define MyAppURL "https://github.com/TheSwerik/RedEye"
#define MyAppExeName "RedEye.exe"
Expand Down
1 change: 0 additions & 1 deletion RedEye.Backend/src/Util/ImageUtil.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ public static Image EyeTextureImage(Rectangle rect)
var eye = new Image {Source = EyeImage};
Canvas.SetLeft(eye, rect.X + (rect.Width - eye.Source.Width) / 2);
Canvas.SetTop(eye, rect.Y + (rect.Height - eye.Source.Height) / 2 + VOffset);
// TODO bind size to windowsize
return eye;
}

Expand Down
2 changes: 2 additions & 0 deletions RedEye.UI/src/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ private void RadioButtonCamera_OnChecked(object sender, RoutedEventArgs e)
{
DeviceBox_OnSelectionChanged(null, null);
NextButton.Visibility = Visibility.Hidden;
DeviceBox.Visibility = Visibility.Visible;
}

private void DeviceBox_OnSelectionChanged(object? sender, SelectionChangedEventArgs? e)
Expand Down Expand Up @@ -120,6 +121,7 @@ private void SwitchToImage()

NextButton_OnClick(null, null);
NextButton.Visibility = Visibility.Visible;
DeviceBox.Visibility = Visibility.Hidden;
}
private void DetectAsync()
{
Expand Down
2 changes: 1 addition & 1 deletion appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
environment:
my_version_number: 1.1.2 # DONT FORGET TO CHANGE IS IN THE ISS FILE
my_version_number: 1.1.3 # DONT FORGET TO CHANGE IS IN THE ISS FILE
application_name: RedEye # DONT FORGET TO CHANGE IS IN THE ISS FILE
project_name: RedEye.UI

Expand Down

0 comments on commit df2068a

Please sign in to comment.