Update Ring Notepad - Set the Form Designer Parent Object.
@@ -1760,7 +1760,14 @@ Class RNoteController from WindowsControllerParent
cDir = CurrentDir()
chdir(exefolder() + "/../applications/formdesigner")
open_windowAndLink(:FormDesignerController,self)
- oDockFormDesigner.setWidget(Last_Window().oView.win)
+ # We still use setParentObject() and avoid using
+ # IsRNOTE() and RNote() in the Form Designer
+ # So we can reuse the Form Designer in other Projects
+ # I.e. Ring Notepad need to know about the Form Designer
+ # But It's enough for the Form Designer to Know that
+ # It's used in another project!
+ FormDesigner().setParentObject(self)
+ oDockFormDesigner.setWidget(FormDesigner().oView.win)
chdir(cDir)
func GetActiveFolder
