Apply cloud themes.

This commit is contained in:
John Preston
2019-09-03 21:04:38 +03:00
parent ac8f924909
commit 4929de2bfb
12 changed files with 280 additions and 152 deletions
+1 -1
View File
@@ -318,7 +318,7 @@ void DocumentOpenClickHandler::Open(
LaunchWithWarning(location.name(), context);
};
const auto &location = data->location(true);
if (data->isTheme() && !location.isEmpty() && location.accessEnable()) {
if (data->isTheme() && data->loaded(DocumentData::FilePathResolve::Checked)) {
Core::App().showDocument(data, context);
location.accessDisable();
} else if (data->canBePlayed()) {