@@ -11,12 +11,15 @@ import DiffScope.UIShell
1111import DiffScope.Core
1212
1313ActionCollection {
14+ id: d
15+
16+ required property ActionWindowInterfaceBase windowHandle
1417
1518 ActionItem {
1619 actionId: " org.diffscope.core.file.new"
1720 Action {
1821 onTriggered : (o ) => {
19- CoreInterface .newFile (o ? . Window .window ?? null )
22+ CoreInterface .newFile (d . windowHandle .window )
2023 }
2124 }
2225 }
@@ -25,7 +28,7 @@ ActionCollection {
2528 actionId: " org.diffscope.core.file.newFromTemplate"
2629 Action {
2730 onTriggered : (o ) => {
28- CoreInterface .newFileFromTemplate (" " , o ? . Window .window ?? null )
31+ CoreInterface .newFileFromTemplate (" " , d . windowHandle .window )
2932 }
3033 }
3134 }
@@ -34,7 +37,7 @@ ActionCollection {
3437 actionId: " org.diffscope.core.file.open"
3538 Action {
3639 onTriggered : (o ) => {
37- CoreInterface .openFile (" " , o ? . Window .window ?? null )
40+ CoreInterface .openFile (" " , d . windowHandle .window )
3841 }
3942 }
4043 }
@@ -52,7 +55,7 @@ ActionCollection {
5255 actionId: " org.diffscope.core.settings"
5356 Action {
5457 onTriggered : (o ) => {
55- let w = o . Window .window
58+ let w = d . windowHandle .window
5659 Qt .callLater (() => CoreInterface .execSettingsDialog (" " , w))
5760 }
5861 }
@@ -62,7 +65,7 @@ ActionCollection {
6265 actionId: " org.diffscope.core.plugins"
6366 Action {
6467 onTriggered : (o ) => {
65- let w = o . Window .window
68+ let w = d . windowHandle .window
6669 Qt .callLater (() => CoreInterface .execPluginsDialog (w))
6770 }
6871 }
@@ -90,7 +93,7 @@ ActionCollection {
9093 actionId: " org.diffscope.core.aboutApp"
9194 Action {
9295 onTriggered : (o ) => {
93- let w = o . Window .window
96+ let w = d . windowHandle .window
9497 Qt .callLater (() => CoreInterface .execAboutAppDialog (w))
9598 }
9699 }
@@ -100,7 +103,7 @@ ActionCollection {
100103 actionId: " org.diffscope.core.aboutQt"
101104 Action {
102105 onTriggered : (o ) => {
103- let w = o . Window .window
106+ let w = d . windowHandle .window
104107 Qt .callLater (() => CoreInterface .execAboutQtDialog (w))
105108 }
106109 }
0 commit comments