Skip to content

Commit 720b1aa

Browse files
author
Marino Faggiana
authored
Merge pull request #29 from nextcloud/fix
4.1.7
2 parents d44c3e7 + 914b04d commit 720b1aa

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

.DS_Store

0 Bytes
Binary file not shown.

Nextcloud/Viewer/NCViewerNextcloudText/NCViewerNextcloudText.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class NCViewerNextcloudText: UIViewController, WKNavigationDelegate, WKScriptMes
7171
webView.customUserAgent = getCustomUserAgentNCText()
7272
webView.load(request)
7373

74-
guard let view = appDelegate.window?.rootViewController?.view else { return }
7574
hud.show(in: view)
7675
}
7776

iOCNotes.xcodeproj/project.pbxproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@
930930
CODE_SIGN_IDENTITY = "iPhone Developer";
931931
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
932932
CODE_SIGN_STYLE = Automatic;
933-
CURRENT_PROJECT_VERSION = 1;
933+
CURRENT_PROJECT_VERSION = 0;
934934
DEBUG_INFORMATION_FORMAT = dwarf;
935935
DEVELOPMENT_TEAM = NKUJUXUJ3B;
936936
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -942,7 +942,7 @@
942942
"@executable_path/Frameworks",
943943
"@executable_path/../../Frameworks",
944944
);
945-
MARKETING_VERSION = 4.1.6;
945+
MARKETING_VERSION = 4.1.7;
946946
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
947947
MTL_FAST_MATH = YES;
948948
PRODUCT_BUNDLE_IDENTIFIER = com.peterandlinda.iOCNotes.ActionExtension;
@@ -968,7 +968,7 @@
968968
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
969969
CODE_SIGN_STYLE = Automatic;
970970
COPY_PHASE_STRIP = NO;
971-
CURRENT_PROJECT_VERSION = 1;
971+
CURRENT_PROJECT_VERSION = 0;
972972
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
973973
DEVELOPMENT_TEAM = NKUJUXUJ3B;
974974
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -980,7 +980,7 @@
980980
"@executable_path/Frameworks",
981981
"@executable_path/../../Frameworks",
982982
);
983-
MARKETING_VERSION = 4.1.6;
983+
MARKETING_VERSION = 4.1.7;
984984
MTL_ENABLE_DEBUG_INFO = NO;
985985
MTL_FAST_MATH = YES;
986986
PRODUCT_BUNDLE_IDENTIFIER = com.peterandlinda.iOCNotes.ActionExtension;
@@ -1105,7 +1105,7 @@
11051105
CODE_SIGN_ENTITLEMENTS = iOCNotes/iOCNotes.entitlements;
11061106
CODE_SIGN_IDENTITY = "iPhone Developer";
11071107
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1108-
CURRENT_PROJECT_VERSION = 1;
1108+
CURRENT_PROJECT_VERSION = 0;
11091109
DEFINES_MODULE = YES;
11101110
DEVELOPMENT_TEAM = NKUJUXUJ3B;
11111111
FRAMEWORK_SEARCH_PATHS = (
@@ -1119,7 +1119,7 @@
11191119
"$(inherited)",
11201120
"@executable_path/Frameworks",
11211121
);
1122-
MARKETING_VERSION = 4.1.6;
1122+
MARKETING_VERSION = 4.1.7;
11231123
OTHER_LDFLAGS = "-ObjC";
11241124
PRODUCT_BUNDLE_IDENTIFIER = "com.peterandlinda.${TARGET_NAME:rfc1034identifier}";
11251125
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";
@@ -1141,7 +1141,7 @@
11411141
CODE_SIGN_ENTITLEMENTS = iOCNotes/iOCNotes.entitlements;
11421142
CODE_SIGN_IDENTITY = "iPhone Developer";
11431143
"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
1144-
CURRENT_PROJECT_VERSION = 1;
1144+
CURRENT_PROJECT_VERSION = 0;
11451145
DEFINES_MODULE = YES;
11461146
DEVELOPMENT_TEAM = NKUJUXUJ3B;
11471147
FRAMEWORK_SEARCH_PATHS = (
@@ -1155,7 +1155,7 @@
11551155
"$(inherited)",
11561156
"@executable_path/Frameworks",
11571157
);
1158-
MARKETING_VERSION = 4.1.6;
1158+
MARKETING_VERSION = 4.1.7;
11591159
OTHER_LDFLAGS = "-ObjC";
11601160
PRODUCT_BUNDLE_IDENTIFIER = "com.peterandlinda.${TARGET_NAME:rfc1034identifier}";
11611161
PRODUCT_MODULE_NAME = "$(TARGET_NAME:c99extidentifier)";

iOCNotes/NotesTableViewController.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ class NotesTableViewController: UITableViewController {
359359
func isAvailableDirectEditing(identifier: String) -> Bool {
360360

361361
var supportsFileId: Bool = false
362+
let offlineMode = KeychainHelper.offlineMode
362363

363364
if let jsonCapabilities = NCService.shared.jsonCapabilities {
364365
let capabilitie = jsonCapabilities[NCElementsJSON.shared.capabilitiesDirectEditingSupportsFileId]
@@ -367,7 +368,7 @@ class NotesTableViewController: UITableViewController {
367368
}
368369
}
369370

370-
if identifier == detailSegueIdentifier && supportsFileId && (appDelegate.networkReachability == NKCommon.TypeReachability.reachableCellular || appDelegate.networkReachability == NKCommon.TypeReachability.reachableEthernetOrWiFi) {
371+
if identifier == detailSegueIdentifier && !offlineMode && supportsFileId && (appDelegate.networkReachability == NKCommon.TypeReachability.reachableCellular || appDelegate.networkReachability == NKCommon.TypeReachability.reachableEthernetOrWiFi) {
371372
return true
372373
}
373374
return false

0 commit comments

Comments
 (0)