mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2025-05-11 13:05:37 +02:00
chore: update cr_file_saver (#668)
Co-authored-by: Ushie <github@ushie.dev>
This commit is contained in:
parent
40888c07f3
commit
8591bc4d01
3 changed files with 3 additions and 15 deletions
|
@ -259,16 +259,8 @@ class PatcherAPI {
|
|||
try {
|
||||
if (_outFile != null) {
|
||||
String newName = _getFileName(appName, version);
|
||||
|
||||
// This is temporary workaround to populate initial file name
|
||||
// ref: https://github.com/Cleveroad/cr_file_saver/issues/7
|
||||
int lastSeparator = _outFile!.path.lastIndexOf('/');
|
||||
String newSourcePath =
|
||||
_outFile!.path.substring(0, lastSeparator + 1) + newName;
|
||||
_outFile!.copySync(newSourcePath);
|
||||
|
||||
CRFileSaver.saveFileWithDialog(SaveFileDialogParams(
|
||||
sourceFilePath: newSourcePath, destinationFileName: newName));
|
||||
sourceFilePath: _outFile!.path, destinationFileName: newName));
|
||||
}
|
||||
} on Exception catch (e, s) {
|
||||
Sentry.captureException(e, stackTrace: s);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue