mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
Spreadsheet: Recognize sheets files by mime type, not by file extension
These conditions weren't executed since 933a717f3b
and always showed
a file import/export wizard.
This commit is contained in:
parent
f47bcddb5b
commit
169498f9db
Notes:
sideshowbarker
2024-07-17 10:43:16 +09:00
Author: https://github.com/krkk
Commit: 169498f9db
Pull-request: https://github.com/SerenityOS/serenity/pull/14080
Reviewed-by: https://github.com/alimpfard ✅
2 changed files with 2 additions and 2 deletions
|
@ -245,7 +245,7 @@ Result<NonnullRefPtrVector<Sheet>, String> ImportDialog::make_and_run_for(GUI::W
|
|||
|
||||
if (mime == "text/csv") {
|
||||
return import_xsv();
|
||||
} else if (mime == "text/plain" && file.filename().ends_with(".sheets")) {
|
||||
} else if (mime == "application/x-sheets+json") {
|
||||
return import_worksheet();
|
||||
} else {
|
||||
auto page = GUI::WizardPage::construct(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue