[ui] Application: fix save-as dialog not working properly (Qt6.7+)

Since Qt 6.7, type annotations are enforced at runtime.
Typing the `sourceSaveDialog` as Dialog (or Platform.FileDialog) breaks the value received by the function and its behavior.
This commit is contained in:
Yann Lanthony 2025-02-21 18:18:15 +01:00
parent 8ee7b50204
commit cdb25e28df

View file

@ -90,7 +90,7 @@ Page {
} }
} }
function validateFilepathForSave(filepath: string, sourceSaveDialog: Dialog): bool { function validateFilepathForSave(filepath: string, sourceSaveDialog): bool {
/** /**
* Return true if `filepath` is valid for saving a file to disk. * Return true if `filepath` is valid for saving a file to disk.
* Otherwise, show a warning dialog and returns false. * Otherwise, show a warning dialog and returns false.