Skip to content

Commit

Permalink
disable keep screen awake (conflict with VLC)
Browse files Browse the repository at this point in the history
Signed-off-by: Marino Faggiana <[email protected]>
  • Loading branch information
marinofaggiana committed Oct 19, 2024
1 parent 9db3cb5 commit e63858a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions iOSClient/Networking/NCNetworkingProcess.swift
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ class NCNetworkingProcess {

/// Keep screen awake
///
/*
Task {
let tasks = await self.networking.getAllDataTask()
let hasSynchronizationTask = tasks.contains { $0.taskDescription == NCGlobal.shared.taskDescriptionSynchronization }
Expand All @@ -99,6 +100,7 @@ class NCNetworkingProcess {
ScreenAwakeManager.shared.mode = NCKeychain().screenAwakeMode
}
}
*/

if results.isEmpty {

Expand Down
2 changes: 2 additions & 0 deletions iOSClient/Settings/Display/NCDisplayView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ struct NCDisplayView: View {
}
.font(.system(size: 16))

/*
Section(header: Text(NSLocalizedString("_additional_options_", comment: ""))) {
Picker(NSLocalizedString("_keep_screen_awake_", comment: ""),
Expand All @@ -78,6 +79,7 @@ struct NCDisplayView: View {
.frame(height: 50)
}
.pickerStyle(.menu)
*/
}
.navigationBarTitle(NSLocalizedString("_display_", comment: ""))
.defaultViewModifier(model)
Expand Down

0 comments on commit e63858a

Please sign in to comment.