Skip to content

Commit

Permalink
Fix #192
Browse files Browse the repository at this point in the history
  • Loading branch information
WebFreak001 committed Jul 11, 2018
1 parent 1f801c8 commit c4244e8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion source/served/extension.d
Original file line number Diff line number Diff line change
Expand Up @@ -339,9 +339,13 @@ void doGlobalStartup()
auto action = translate!"d.ext.compileProgram"("DCD");
else
auto action = translate!"d.ext.downloadProgram"("DCD");
static if (is(typeof(backend.get!DCDComponent.clientInstalledVersion)))
auto wanted = backend.get!DCDComponent.clientInstalledVersion;
else
auto wanted = "0.9.8";
auto res = rpc.window.requestMessage(MessageType.error,
translate!"d.served.outdatedDCD"(DCDComponent.latestKnownVersion.to!(string[])
.join("."), backend.get!DCDComponent.clientInstalledVersion), [action]);
.join("."), wanted), [action]);
if (res == action)
spawnFiber((&updateDCD).toDelegate);
});
Expand Down

0 comments on commit c4244e8

Please sign in to comment.