Skip to content

Commit

Permalink
Let editors be default editors by default
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Dec 22, 2021
1 parent a72f17b commit 6aa2e92
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions changelog/unreleased/bugfix-app-defaults
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Bugfix: Editor default handling

Editor apps that don't provide the information about whether or not they are a default editor were not recognized as default editors when left-clicking a file in the file list. We've changed the default behaviour so that editors are capable of being the default editor unless explicitly disabled.

https://github.com/owncloud/web/pull/6186
2 changes: 1 addition & 1 deletion packages/web-runtime/src/store/apps.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const mutations = {
routes: extension.routes || [],
extension: extension.extension,
handler: extension.handler,
canBeDefault: extension.canBeDefault === true
canBeDefault: extension.canBeDefault !== false
}

state.fileEditors.push(editor)
Expand Down

0 comments on commit 6aa2e92

Please sign in to comment.