Commit graph

6 commits

Author SHA1 Message Date
Candice Bentéjac
d8c851961d [ui] Correctly retrieve path of most recent project to initialize dialogs 2024-09-04 14:57:00 +02:00
Candice Bentéjac
f56a9579f2 [ui] Correctly distinguish "save" from "save as" cases in unsavedDialog
Prior to this commit, even if the current graph had never been saved,
we ended up going through the "save current file" use case rather than
the "save as" because the `saveAction` button was always enabled.

This led to the callback being fired before the "save as" dialog had
been closed.
2024-09-03 16:19:36 +02:00
Candice Bentéjac
d89aec0250 [ui] Rename general and UI settings components 2024-09-03 10:51:49 +01:00
Candice Bentéjac
e0120fd287 [ui] Improve separation between main and Application
All the actions, file dialogs and message dialogs that are specific to
the application are removed from `main.qml` and placed instead in
`Application.qml`.

Only elements and functions related to the main window remain in
`main.qml`. As such, the `ensureSaved` and `ensureNotComputing` functions,
used when closing the main window, remain in `main.qml`.

Message dialogs that may be opened by these functions however are moved
to `Application.qml` as they are application-specific and can't be opened
on the homepage.

Application dialogs that may need to be called when triggering the closure
of the main window are aliased from `Application.qml` to remain callable
through the `StackView`.
2024-09-03 10:37:07 +01:00
Aurore LAFAURIE
655f83892d [ui] New button added for empty project 2024-08-26 16:21:27 +02:00
Aurore LAFAURIE
5b92df328f Implementation of Homepage 2024-08-26 16:21:26 +02:00