diff --git a/proto/host/window.proto b/proto/host/window.proto index 368697f3..bb9f1248 100644 --- a/proto/host/window.proto +++ b/proto/host/window.proto @@ -84,6 +84,8 @@ message ShowSaveDialogRequest { message ShowSaveDialogOptions { optional string default_path = 1; + // A map of file types to extensions, e.g + // "Text Files": { "extensions": ["txt", "md"] } map filters = 2; } @@ -92,6 +94,7 @@ message FileExtensionList { } message ShowSaveDialogResponse { + // If the user cancelled the dialog, this will be empty. optional string selected_path = 1; } @@ -129,4 +132,4 @@ message GetVisibleTabsRequest { message GetVisibleTabsResponse { repeated string paths = 1; -} \ No newline at end of file +}