Skip to content

Commit 5aae079

Browse files
committed
fix: Enforce ASCII numerals to avoid Su-zhou numerals on some systems
1 parent da1f120 commit 5aae079

File tree

3 files changed

+26
-10
lines changed

3 files changed

+26
-10
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
find_package(Qt6 REQUIRED COMPONENTS Core Gui Qml Quick QuickControls2 Network)
77

88
# Read version from git tag if available
9-
set(CONNECTTOOL_VERSION "1.5.13")
9+
set(CONNECTTOOL_VERSION "1.5.14")
1010
if(DEFINED ENV{CONNECTTOOL_VERSION})
1111
set(CONNECTTOOL_VERSION "$ENV{CONNECTTOOL_VERSION}")
1212
endif()

flake.nix

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,18 +28,20 @@
2828
steamworksSdkEnv = builtins.getEnv "STEAMWORKS_SDK_DIR";
2929
steamworksEnvPath =
3030
if steamworksEnv != "" then
31-
builtins.path {
32-
path = steamworksEnv;
33-
name = "steamworks-hint";
34-
}
31+
builtins.path
32+
{
33+
path = steamworksEnv;
34+
name = "steamworks-hint";
35+
}
3536
else
3637
null;
3738
steamworksSdkEnvPath =
3839
if steamworksSdkEnv != "" then
39-
builtins.path {
40-
path = steamworksSdkEnv;
41-
name = "steamworks-sdk";
42-
}
40+
builtins.path
41+
{
42+
path = steamworksSdkEnv;
43+
name = "steamworks-sdk";
44+
}
4345
else
4446
null;
4547
steamworksHint =
@@ -60,7 +62,7 @@
6062
{
6163
default = pkgs.stdenv.mkDerivation rec {
6264
pname = "connecttool-qt";
63-
version = "1.5.13";
65+
version = "1.5.14";
6466
dontWrapQtApps = pkgs.stdenv.isDarwin;
6567

6668
# Keep entire working tree (including untracked) so new sources are present.

qml/ConnectTool/Main.qml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,13 @@ ApplicationWindow {
494494
to: 65535
495495
value: backend.localPort
496496
editable: true
497+
textFromValue: function(value, locale) {
498+
return value.toString()
499+
}
500+
valueFromText: function(text, locale) {
501+
const parsed = parseInt(text, 10)
502+
return isNaN(parsed) ? value : parsed
503+
}
497504
enabled: backend.connectionMode === 0 && !(backend.isHost || backend.isConnected)
498505
onValueChanged: backend.localPort = value
499506
}
@@ -511,6 +518,13 @@ ApplicationWindow {
511518
to: 65535
512519
value: backend.localBindPort
513520
editable: true
521+
textFromValue: function(value, locale) {
522+
return value.toString()
523+
}
524+
valueFromText: function(text, locale) {
525+
const parsed = parseInt(text, 10)
526+
return isNaN(parsed) ? value : parsed
527+
}
514528
enabled: backend.connectionMode === 0 && !(backend.isHost || backend.isConnected)
515529
onValueChanged: backend.localBindPort = value
516530
}

0 commit comments

Comments
 (0)