mirror of
				https://github.com/yattee/yattee.git
				synced 2025-11-04 06:32:03 +00:00 
			
		
		
		
	Decrease loading delay
This commit is contained in:
		@@ -74,7 +74,7 @@ struct ChannelPlaylistView: View {
 | 
			
		||||
        }
 | 
			
		||||
        .onAppear {
 | 
			
		||||
            if navigationStyle == .tab {
 | 
			
		||||
                DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
 | 
			
		||||
                DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
 | 
			
		||||
                    resource?.loadIfNeeded()
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
 
 | 
			
		||||
@@ -126,7 +126,7 @@ struct ChannelVideosView: View {
 | 
			
		||||
        #endif
 | 
			
		||||
        .onAppear {
 | 
			
		||||
            if navigationStyle == .tab {
 | 
			
		||||
                DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
 | 
			
		||||
                DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
 | 
			
		||||
                    resource?.loadIfNeeded()
 | 
			
		||||
                }
 | 
			
		||||
            } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user