Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions OpenUtau/Strings/Strings.axaml
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<system:String x:Key="errors.failed.importaudio">Failed to import audio</system:String>
<system:String x:Key="errors.failed.importfiles">Failed to import files</system:String>
<system:String x:Key="errors.failed.importmidi">Failed to import midi</system:String>
<system:String x:Key="errors.failed.installsinger">Failed to install singer</system:String>
<system:String x:Key="errors.failed.load">Failed to load</system:String>
<system:String x:Key="errors.failed.loadprefs">Failed to load prefs. Initialize it.</system:String>
<system:String x:Key="errors.failed.openfile">Failed to open</system:String>
Expand Down
21 changes: 13 additions & 8 deletions OpenUtau/Views/MainWindow.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -852,14 +852,19 @@ async void OnDrop(object? sender, DragEventArgs args) {
_ = await MessageBox.ShowError(this, new MessageCustomizableException("Failed to import midi", "<translate:errors.failed.importmidi>", e));
}
} else if (ext == ".zip" || ext == ".rar" || ext == ".uar") {
var setup = new SingerSetupDialog() {
DataContext = new SingerSetupViewModel() {
ArchiveFilePath = file,
},
};
_ = setup.ShowDialog(this);
if (setup.Position.Y < 0) {
setup.Position = setup.Position.WithY(0);
try{
var setup = new SingerSetupDialog() {
DataContext = new SingerSetupViewModel() {
ArchiveFilePath = file,
},
};
_ = setup.ShowDialog(this);
if (setup.Position.Y < 0) {
setup.Position = setup.Position.WithY(0);
}
} catch (Exception e) {
Log.Error(e, $"Failed to install singer {file}");
_ = await MessageBox.ShowError(this, new MessageCustomizableException("Failed to install singer", "<translate:errors.failed.installsinger>", e));
}
} else if (ext == Core.Vogen.VogenSingerInstaller.FileExt) {
Core.Vogen.VogenSingerInstaller.Install(file);
Expand Down