Uhr: keine sekuendliche Neupositionierung - kein Geisterbild mehr
This commit is contained in:
parent
2b8ed17f52
commit
d62139afc9
1 changed files with 3 additions and 1 deletions
|
|
@ -105,12 +105,14 @@ public partial class MainWindow : Window
|
|||
var time = DateTime.Now.ToString("HH:mm:ss");
|
||||
TxtClock.Text = time;
|
||||
_clockWindow?.UpdateTime(time);
|
||||
PositionClockWindow();
|
||||
// Nur neu positionieren wenn Hauptfenster bewegt wurde - nicht jede Sekunde
|
||||
};
|
||||
|
||||
Loaded += MainWindow_Loaded;
|
||||
Closing += MainWindow_Closing;
|
||||
KeyDown += MainWindow_KeyDown;
|
||||
LocationChanged += (_, _) => PositionClockWindow();
|
||||
SizeChanged += (_, _) => PositionClockWindow();
|
||||
}
|
||||
|
||||
private void OnVideoDoubleClick(object sender, MouseButtonEventArgs e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue