Skip to content

Commit

Permalink
fix: downloading methods using old pref format
Browse files Browse the repository at this point in the history
  • Loading branch information
SoCuul committed Sep 23, 2024
1 parent 6fd7725 commit c39b81f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/Features/Save/MediaSave.x
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%property (nonatomic, strong) JGProgressHUD *hud;
- (id)initWithFrame:(CGRect)arg1 {
id orig = %orig;
if ([SCIManager downloadMedia]) {
if ([SCIManager getPref:@"dw_videos"]) {
[orig addHandleLongPress];
}
return orig;
Expand Down Expand Up @@ -87,7 +87,7 @@
%property (nonatomic, strong) JGProgressHUD *hud;
- (id)initWithFrame:(CGRect)arg1 {
id orig = %orig;
if ([SCIManager downloadMedia]) {
if ([SCIManager getPref:@"dw_videos"]) {
[orig addHandleLongPress];
}
return orig;
Expand Down Expand Up @@ -183,7 +183,7 @@
%property (nonatomic, strong) JGProgressHUD *hud;
- (id)initWithFrame:(CGRect)arg1 {
id orig = %orig;
if ([SCIManager downloadMedia]) {
if ([SCIManager getPref:@"dw_videos"]) {
[orig addHandleLongPress];
}
return orig;
Expand Down
2 changes: 1 addition & 1 deletion src/Features/Save/ProfileImageSave.x
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%property (nonatomic, strong) JGProgressHUD *hud;
- (void)viewDidLoad {
%orig;
if ([SCIManager profileImageSave]) {
if ([SCIManager getPref:@"save_profile"]) {
[self addHandleLongPress];
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/Features/Save/StoriesSave.x
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
self.hud.textLabel.text = @"Downloading";
[self.hud showInView:topMostController().view];
}]];
} else if ([self.mediaView isKindOfClass:%c(IGStoryVideoView)]) {
} /* else if ([self.mediaView isKindOfClass:%c(IGStoryVideoView)]) {
IGVideo *_video = [((IGStoryVideoView *)self.mediaView).videoPlayer valueForKey:@"_video"];
self.fileextension = @"mp4";
NSArray *videoURLArray = [_video.allVideoURLs allObjects];
Expand All @@ -58,7 +58,7 @@
[self.hud showInView:topMostController().view];
}]];
}
}
} */

// !! Currently not working (dunno why and im lazy too fix)
/* if (self.delegate != nil) {
Expand Down

0 comments on commit c39b81f

Please sign in to comment.