Skip to content

Commit

Permalink
submodules update; icon change
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Kovalyov committed Jul 16, 2020
1 parent e6acdf2 commit 6735812
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 4 deletions.
Binary file removed FrameTimeHandler/Assets/avalonia-logo.ico
Binary file not shown.
Binary file added FrameTimeHandler/Assets/fth-logo.ico
Binary file not shown.
11 changes: 11 additions & 0 deletions FrameTimeHandler/FrameTimeHandler.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
<OutputType>WinExe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<InvariantGlobalization>true</InvariantGlobalization>
<ApplicationIcon>Assets\fth-logo.ico</ApplicationIcon>
<Version>0.1</Version>
<Description>frame time graph creation tool</Description>
<PackageProjectUrl>https://github.com/FlexxxerAlex/frametime-handler</PackageProjectUrl>
<PackageIcon>fth-logo.ico</PackageIcon>
</PropertyGroup>
<ItemGroup>
<AvaloniaResource Include="Assets\**" />
Expand All @@ -18,6 +23,12 @@
<ItemGroup>
<ProjectReference Include="..\PythonInterop\PythonInterop\PythonInterop.csproj" />
</ItemGroup>
<ItemGroup>
<None Include="Assets\fth-logo.ico">
<Pack>True</Pack>
<PackagePath></PackagePath>
</None>
</ItemGroup>
<Target Name="PreBuild" BeforeTargets="PreBuildEvent">
<Exec Command="if $(ConfigurationName) == Debug (&#xD;&#xA; cd $(SolutionDir)&#xD;&#xA;&#xD;&#xA; Xcopy ftanlzer $(TargetDir)ftanlzer\ /K /D /H /Y /s /e&#xD;&#xA;)" />
</Target>
Expand Down
6 changes: 5 additions & 1 deletion FrameTimeHandler/ViewModels/MainWindowViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,15 @@ public MainWindowViewModel()
var fileDialog = new OpenFileDialog()
{
AllowMultiple = false,
Directory = Directory.GetCurrentDirectory()
};
string[] results = await fileDialog.ShowAsync((Application.Current.ApplicationLifetime as ClassicDesktopStyleApplicationLifetime)?.MainWindow);
if (results is null)
{
return;
}
string selectedFile = results.FirstOrDefault(r => string.IsNullOrEmpty(r) is false);
if (!string.IsNullOrEmpty(selectedFile))
Expand Down
2 changes: 1 addition & 1 deletion FrameTimeHandler/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
TextBlock.FontSize="{DynamicResource FontSizeNormal}"

x:Class="FrameTimeHandler.Views.MainWindow"
Icon="/Assets/avalonia-logo.ico"
Icon="/Assets/fth-logo.ico"
Title="FrameTime Handler"
WindowStartupLocation="Manual"
mc:Ignorable="d" d:DesignWidth="600" d:DesignHeight="300"
Expand Down
2 changes: 1 addition & 1 deletion PythonInterop
2 changes: 1 addition & 1 deletion ftanlzer

0 comments on commit 6735812

Please sign in to comment.