From dbdd7f8daee2f96a83dd7e283d7d3240dd050dcc Mon Sep 17 00:00:00 2001 From: Dantestyle Date: Sun, 30 Dec 2018 02:46:35 +0100 Subject: [PATCH 1/2] Avoid Cmake that create C++14 build with C++17 installed --- cmake/compiler.cmake | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cmake/compiler.cmake b/cmake/compiler.cmake index c413d73b..99bd6428 100644 --- a/cmake/compiler.cmake +++ b/cmake/compiler.cmake @@ -9,6 +9,14 @@ else() set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHc") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /bigobj") + + if (MSVC_VERSION GREATER_EQUAL "1900") + include(CheckCXXCompilerFlag) + CHECK_CXX_COMPILER_FLAG("/std:c++latest" _cpp_latest_flag_supported) + if (_cpp_latest_flag_supported) + add_compile_options("/std:c++latest") + endif() + endif() if(CMAKE_BUILD_TYPE STREQUAL "Debug") # disabling SAFESEH From 5b34e5ba5d85dcc9031b37564608b8125ea9f3be Mon Sep 17 00:00:00 2001 From: Dantestyle Date: Sun, 30 Dec 2018 04:52:28 +0100 Subject: [PATCH 2/2] Press Enter after password and finally instant open client --- bin/web/login.html | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/bin/web/login.html b/bin/web/login.html index a6687cf7..172a23f3 100644 --- a/bin/web/login.html +++ b/bin/web/login.html @@ -43,6 +43,14 @@ return data; } + function keypressing(e) { + if (!e) e = window.event; + var keyCode = e.keyCode || e.which; + if (keyCode == '13'){ + doLogin(); + return false; + } + } @@ -79,7 +87,7 @@