mirror of
https://github.com/jayfunc/BetterLyrics.git
synced 2026-01-13 03:34:55 +08:00
fix: selectorbar section disappear
This commit is contained in:
@@ -151,7 +151,7 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
|
||||
private void ConfigButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
WindowSelectorBarItem.Visibility = LayoutSelectorBarItem.Visibility = Visibility.Visible;
|
||||
WindowSelectorBarItem.IsEnabled = LayoutSelectorBarItem.IsEnabled = true;
|
||||
ConfigSelectorBar.SelectedItem = WindowSelectorBarItem;
|
||||
LyricsWindowStatus = (LyricsWindowStatus)((Button)sender).DataContext;
|
||||
ViewModel.OpenConfigPanel();
|
||||
@@ -159,7 +159,7 @@ namespace BetterLyrics.WinUI3.Controls
|
||||
|
||||
private void EmbeddedConfigButton_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
WindowSelectorBarItem.Visibility = LayoutSelectorBarItem.Visibility = Visibility.Collapsed;
|
||||
WindowSelectorBarItem.IsEnabled = LayoutSelectorBarItem.IsEnabled = false;
|
||||
ConfigSelectorBar.SelectedItem = AlbumArtStyleSelectorBarItem;
|
||||
LyricsWindowStatus = _settingsService.AppSettings.MusicGallerySettings.LyricsWindowStatus;
|
||||
ViewModel.OpenConfigPanel();
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Threading;
|
||||
|
||||
namespace BetterLyrics.WinUI3.Hooks
|
||||
{
|
||||
public class TaskbarHook : IDisposable
|
||||
public partial class TaskbarHook : IDisposable
|
||||
{
|
||||
private readonly UIA3Automation _automation;
|
||||
private AutomationElement? _taskbar;
|
||||
|
||||
@@ -17,6 +17,7 @@ using Microsoft.UI.Windowing;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Input;
|
||||
using Microsoft.UI.Xaml.Media.Imaging;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
using Windows.Foundation;
|
||||
using Windows.Graphics.Imaging;
|
||||
@@ -75,6 +76,7 @@ namespace BetterLyrics.WinUI3.Views
|
||||
|
||||
private void OnTaskbarFreeBoundsChanged(Events.TaskbarFreeBoundsChangedEventArgs obj)
|
||||
{
|
||||
Debug.WriteLine(obj.TaskbarFreeBounds);
|
||||
this.MoveAndResize(obj.TaskbarFreeBounds);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user