mirror of
https://github.com/revanced/revanced-manager.git
synced 2025-05-03 23:34:25 +02:00
fix: Incorrect duplicate filename handling when exporting files (#1541)
This commit is contained in:
parent
c9412a97d0
commit
de51fbd7be
@ -240,6 +240,7 @@ void exportPatchedFile(String appName, String version) {
|
|||||||
params: SaveFileDialogParams(
|
params: SaveFileDialogParams(
|
||||||
sourceFilePath: outFile!.path,
|
sourceFilePath: outFile!.path,
|
||||||
fileName: newName,
|
fileName: newName,
|
||||||
|
mimeTypesFilter: ['application/vnd.android.package-archive'],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -287,7 +288,7 @@ Future<void> exportPatcherLog(String logs) async {
|
|||||||
final File log = File('${logDir.path}/$fileName');
|
final File log = File('${logDir.path}/$fileName');
|
||||||
log.writeAsStringSync(logs);
|
log.writeAsStringSync(logs);
|
||||||
FlutterFileDialog.saveFile(
|
FlutterFileDialog.saveFile(
|
||||||
params: SaveFileDialogParams(
|
params:SaveFileDialogParams(
|
||||||
sourceFilePath: log.path,
|
sourceFilePath: log.path,
|
||||||
fileName: fileName,
|
fileName: fileName,
|
||||||
),
|
),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user