Skip to content

Commit

Permalink
lua button not visible if dcs-bios not found
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom committed Jan 21, 2024
1 parent c2aa8d9 commit b1797e0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/DCSInsight/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ private void MainWindow_OnLoaded(object sender, RoutedEventArgs e)

Top = Settings.Default.MainWindowTop.CompareTo(-1) == 0 ? Top : Settings.Default.MainWindowTop;
Left = Settings.Default.MainWindowLeft.CompareTo(-1) == 0 ? Left : Settings.Default.MainWindowLeft;


ButtonLuaWindow.Visibility = Directory.Exists(Environment.ExpandEnvironmentVariables(Settings.Default.DCSBiosJSONLocation)) ? Visibility.Visible : Visibility.Collapsed;
_formLoaded = true;
}
catch (Exception ex)
Expand Down

0 comments on commit b1797e0

Please sign in to comment.