From 4b5953539b04a0137432ad189afe84a99771126b Mon Sep 17 00:00:00 2001 From: IndrekV Date: Fri, 2 Mar 2018 23:56:28 +1000 Subject: [PATCH] Don't open edit with minitimer single click (win), #2354 --- .../windows/TogglDesktop/TogglDesktop/ui/views/Timer.xaml.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui/windows/TogglDesktop/TogglDesktop/ui/views/Timer.xaml.cs b/src/ui/windows/TogglDesktop/TogglDesktop/ui/views/Timer.xaml.cs index 8407571510..0438f6136e 100644 --- a/src/ui/windows/TogglDesktop/TogglDesktop/ui/views/Timer.xaml.cs +++ b/src/ui/windows/TogglDesktop/TogglDesktop/ui/views/Timer.xaml.cs @@ -259,6 +259,11 @@ private void tryOpenEditViewIfRunning(MouseButtonEventArgs e, string focusedFiel { if (this.isRunning) { + if (this.PreventOnApp) + { + e.Handled = true; + return; + } using (Performance.Measure("opening edit view from timer, focussing " + focusedField)) { Toggl.Edit(this.runningTimeEntry.GUID, false, focusedField);