Skip to content

Commit

Permalink
ViewWithKnownExternalViewer: ReportIf() => ReportDebugIf()
Browse files Browse the repository at this point in the history
  • Loading branch information
kjk committed Sep 19, 2024
1 parent 17be685 commit ebc0e72
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ExternalViewers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,9 +395,9 @@ static TempStr GetDocumentPathQuoted(WindowTab* tab) {
bool ViewWithKnownExternalViewer(WindowTab* tab, int cmdId) {
bool canView = CanViewWithKnownExternalViewer(tab, cmdId);
if (!canView) {
// TODO: with command palette can send un-enforcable command
logfa("ViewWithKnownExternalViewer cmd: %d\n", cmdId);
ReportIf(!canView);
// with command palette can send un-enforcable command so not ReportIf
ReportDebugIf(!canView);
return false;
}
ExternalViewerInfo* ev = FindKnownExternalViewerInfoByCmdId(cmdId);
Expand Down

0 comments on commit ebc0e72

Please sign in to comment.