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);