Skip to content

Commit

Permalink
Fixed Directory not updating when a new is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
schneidermanuel committed Mar 14, 2024
1 parent e399fba commit ef1a81b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
4 changes: 2 additions & 2 deletions TwitchLeecher/TwitchLeecher.Gui/Services/DialogService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ public async void ShowFolderBrowserDialog(string folder, Action<bool, string> di
});
if (picker.Any())
{
dialogCompleteCallback(true, picker.First().Path.AbsolutePath);
dialogCompleteCallback(false, picker.First().Path.AbsolutePath);
return;
}

dialogCompleteCallback(false, null);
dialogCompleteCallback(true, null);
}

public async void ShowFileBrowserDialog(CommonFileDialogFilter filter, string folder,
Expand Down
4 changes: 0 additions & 4 deletions TwitchLeecher/TwitchLeecher.Gui/TwitchLeecher.Gui.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,6 @@
<DependentUpon>MessageBoxWindow.axaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\NotificationStrip.axaml.cs">
<DependentUpon>NotificationStrip.axaml</DependentUpon>
<SubType>Code</SubType>
</Compile>
<Compile Update="Views\PreferencesView.axaml.cs">
<DependentUpon>PreferencesView.axaml</DependentUpon>
<SubType>Code</SubType>
Expand Down
2 changes: 1 addition & 1 deletion TwitchLeecher/TwitchLeecher.Gui/Views/MainWindow.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
</ItemsControl>
</Grid>
</Grid>
<Grid Grid.Row="1" Background="DarkGoldenrod" IsVisible="{Binding ShowNotification}">
<Grid Grid.Row="1" Background="{DynamicResource GlobalThemeColor}" IsVisible="{Binding ShowNotification}">
<TextBlock Margin="0 10" TextAlignment="Center" HorizontalAlignment="Center" Text="{Binding Notification}" />
</Grid>
</Grid>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ public async Task StartListenForToken()
httpListener.Stop();
return;
}
else if (context.Request.QueryString.ContainsKey("sub_token"))

if (context.Request.QueryString.ContainsKey("sub_token"))
{
var accessToken = context.Request.QueryString["sub_token"];
context.Response.StatusCode = 200;
Expand Down

0 comments on commit ef1a81b

Please sign in to comment.