From 7cf308374a4e3c7e59dabe4c091cfa4713e4a6aa Mon Sep 17 00:00:00 2001 From: Jacob Date: Thu, 23 May 2024 11:03:33 +0200 Subject: [PATCH] Avoid some code duplication --- test/testwindow.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/testwindow.go b/test/testwindow.go index 9092c5f5d0..5e3fc113eb 100644 --- a/test/testwindow.go +++ b/test/testwindow.go @@ -25,8 +25,7 @@ type testWindow struct { // // Since: 2.5 func NewTempWindow(t testing.TB, content fyne.CanvasObject) fyne.Window { - window := fyne.CurrentApp().NewWindow("") - window.SetContent(content) + window := NewWindow(content) t.Cleanup(window.Close) return window }