diff --git a/RetroBar/PropertiesWindow.xaml b/RetroBar/PropertiesWindow.xaml
index 83edb2e5..9268039f 100644
--- a/RetroBar/PropertiesWindow.xaml
+++ b/RetroBar/PropertiesWindow.xaml
@@ -181,7 +181,7 @@
-
@@ -190,7 +190,7 @@
-
@@ -199,10 +199,10 @@
-
+ SelectionChanged="CboEdgeSelect_SelectionChanged" />
-
-
@@ -334,9 +334,9 @@
Margin="10">
-
+
+ SelectionChanged="CboMiddleMouseAction_SelectionChanged" />
+ SelectionChanged="CboClockAction_SelectionChanged" />
-
+ SelectionChanged="CboInvertIconsMode_SelectionChanged" />
+ Content="{DynamicResource customize}"
+ Click="CustomizeNotifications_OnClick" />
@@ -406,11 +406,11 @@
Target="{Binding ElementName=cboMultiMonMode}">
-
+ SelectionChanged="CboMultiMonMode_SelectionChanged" />
@@ -419,7 +419,7 @@
-
-
@@ -440,7 +440,7 @@
-
-
-
+
+
+
+
+
+
+
+
@@ -84,8 +84,21 @@
RelativeSource="{RelativeSource Mode=FindAncestor, AncestorType=Window}" />
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
-
-
-
-
-
+
-
-
-
-
+
+
+
diff --git a/RetroBar/Taskbar.xaml.cs b/RetroBar/Taskbar.xaml.cs
index 9f322980..74097506 100644
--- a/RetroBar/Taskbar.xaml.cs
+++ b/RetroBar/Taskbar.xaml.cs
@@ -9,7 +9,6 @@
using System.Windows.Controls;
using RetroBar.Utilities;
using Application = System.Windows.Application;
-using RetroBar.Controls;
using System.Diagnostics;
using System.Windows.Input;
using ManagedShell.Common.Logging;
@@ -47,8 +46,6 @@ public int Rows
set => Settings.Instance.RowCount = value;
}
- private bool _clockRightClicked;
- private bool _notifyAreaRightClicked;
private bool _startMenuOpen;
private LowLevelMouseHook _mouseDragHook;
private Point? _mouseDragStart = null;
@@ -318,7 +315,7 @@ private void Taskbar_Deactivated(object sender, EventArgs e)
}
}
- private void DateTimeMenuItem_OnClick(object sender, RoutedEventArgs e)
+ private void SetTimeMenuItem_OnClick(object sender, RoutedEventArgs e)
{
ShellHelper.StartProcess("timedate.cpl");
}
@@ -418,47 +415,6 @@ private void ContextMenu_Opened(object sender, RoutedEventArgs e)
{
UpdateAvailableMenuItem.Visibility = Visibility.Visible;
}
-
- // Some menu items should only be accessible when the clock is what was right-clicked
-
- if (_clockRightClicked)
- {
- DateTimeMenuItem.Visibility = Visibility.Visible;
- }
- else
- {
- DateTimeMenuItem.Visibility = Visibility.Collapsed;
- }
-
- if(_notifyAreaRightClicked && Settings.Instance.CollapseNotifyIcons)
- {
- CustomizeNotificationsMenuItem.Visibility = Visibility.Visible;
- }
- else
- {
- CustomizeNotificationsMenuItem.Visibility = Visibility.Collapsed;
- }
-
- if (_clockRightClicked || (_notifyAreaRightClicked && Settings.Instance.CollapseNotifyIcons))
- {
- NotificationAreaSeparator.Visibility = Visibility.Visible;
- }
- else
- {
- NotificationAreaSeparator.Visibility = Visibility.Collapsed;
- }
-
- if (Settings.Instance.ShowExitMenuItem)
- {
- ExitMenuItem.Visibility = Visibility.Visible;
- }
- else
- {
- ExitMenuItem.Visibility = Visibility.Collapsed;
- }
-
- _clockRightClicked = false;
- _notifyAreaRightClicked = false;
}
public void SetTrayHost()
@@ -487,16 +443,6 @@ public void SetStartMenuOpen(bool isOpen)
}
}
- private void Clock_PreviewMouseRightButtonUp(object sender, MouseButtonEventArgs e)
- {
- _clockRightClicked = true;
- }
-
- private void NotifyArea_PreviewMouseRightButtonUp(object sender, MouseButtonEventArgs e)
- {
- _notifyAreaRightClicked = true;
- }
-
private void Taskbar_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e)
{
if (!IsLocked)