Skip to content

Commit 93911cf

Browse files
committed
fix: compatible to macos 13.0
1 parent aa80562 commit 93911cf

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

NetworkStatusBar.xcodeproj/project.pbxproj

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
BE3EC93C272FC5E1005AC578 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = "<group>"; };
5555
BE3EC93E272FC761005AC578 /* statusbar-snapshot.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "statusbar-snapshot.png"; sourceTree = "<group>"; };
5656
BE3EC93F272FC7A1005AC578 /* details-snapshot.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "details-snapshot.png"; sourceTree = "<group>"; };
57-
BE3EC940272FC8CD005AC578 /* all-snapshot.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "all-snapshot.png"; sourceTree = "<group>"; };
5857
BE3EC940272FC8CD005AC578 /* LICENSE */ = {isa = PBXFileReference; lastKnownFileType = text; path = LICENSE; sourceTree = "<group>"; };
5958
/* End PBXFileReference section */
6059

@@ -149,7 +148,6 @@
149148
BE3EC93D272FC706005AC578 /* docs */ = {
150149
isa = PBXGroup;
151150
children = (
152-
BE3EC940272FC8CD005AC578 /* all-snapshot.png */,
153151
BE3EC93E272FC761005AC578 /* statusbar-snapshot.png */,
154152
BE3EC93F272FC7A1005AC578 /* details-snapshot.png */,
155153
);
@@ -464,7 +462,7 @@
464462
CODE_SIGN_ENTITLEMENTS = NetworkStatusBar/NetworkStatusBarDebug.entitlements;
465463
CODE_SIGN_STYLE = Automatic;
466464
COMBINE_HIDPI_IMAGES = YES;
467-
CURRENT_PROJECT_VERSION = 1;
465+
CURRENT_PROJECT_VERSION = 2;
468466
DEVELOPMENT_ASSET_PATHS = "\"NetworkStatusBar/Preview Content\"";
469467
ENABLE_PREVIEWS = YES;
470468
GENERATE_INFOPLIST_FILE = YES;
@@ -474,7 +472,7 @@
474472
"@executable_path/../Frameworks",
475473
);
476474
MACOSX_DEPLOYMENT_TARGET = 12.0;
477-
MARKETING_VERSION = 1.0.0;
475+
MARKETING_VERSION = 1.0.1;
478476
PRODUCT_BUNDLE_IDENTIFIER = cn.fatalc.NetworkStatusBar;
479477
PRODUCT_NAME = "$(TARGET_NAME)";
480478
SWIFT_EMIT_LOC_STRINGS = YES;
@@ -490,7 +488,7 @@
490488
CODE_SIGN_ENTITLEMENTS = NetworkStatusBar/NetworkStatusBar.entitlements;
491489
CODE_SIGN_STYLE = Automatic;
492490
COMBINE_HIDPI_IMAGES = YES;
493-
CURRENT_PROJECT_VERSION = 1;
491+
CURRENT_PROJECT_VERSION = 2;
494492
DEVELOPMENT_ASSET_PATHS = "\"NetworkStatusBar/Preview Content\"";
495493
DEVELOPMENT_TEAM = "";
496494
ENABLE_PREVIEWS = YES;
@@ -501,7 +499,7 @@
501499
"@executable_path/../Frameworks",
502500
);
503501
MACOSX_DEPLOYMENT_TARGET = 12.0;
504-
MARKETING_VERSION = 1.0.0;
502+
MARKETING_VERSION = 1.0.1;
505503
PRODUCT_BUNDLE_IDENTIFIER = cn.fatalc.NetworkStatusBar;
506504
PRODUCT_NAME = "$(TARGET_NAME)";
507505
SWIFT_EMIT_LOC_STRINGS = YES;

NetworkStatusBar/NetworkStatus.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,11 @@ open class NetworkDetails {
6969
return
7070
}
7171
var dataframe = (try? DataFrame(csvData: data, columns: Columns)) ?? DataFrame.init()
72-
dataframe.renameColumn("", to: ColumnName)
72+
if #available(macOS 13.0, *) {
73+
dataframe.renameColumn("Column 0", to: ColumnName)
74+
} else {
75+
dataframe.renameColumn("", to: ColumnName)
76+
}
7377
if laststate.isEmpty {
7478
laststate = dataframe
7579
}

0 commit comments

Comments
 (0)