Open any document type via external media viewer

This commit is contained in:
Ilya Fedin
2026-03-06 22:30:51 +00:00
committed by John Preston
parent 07649b3c16
commit 6acc2633a5
@@ -3216,7 +3216,7 @@ void SessionController::openDocument(
if (openSharedStory(item) || openFakeItemStory(message.id, stories)) {
return;
} else if (showInMediaView) {
if (OptionExternalMediaViewer.value() && document->isVideoFile()) {
if (OptionExternalMediaViewer.value() && !document->isTheme()) {
const auto filepath = document->filepath();
if (filepath.isEmpty()) {
if (document->loadedInMediaCache()) {