Skip to content

Commit

Permalink
Only show suredeletesong prompt on first song
Browse files Browse the repository at this point in the history
  • Loading branch information
ComputerElite authored Feb 22, 2023
1 parent cc0fe1a commit 195a076
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 17 deletions.
17 changes: 8 additions & 9 deletions C#/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public partial class MainWindow : Window
{
public static int MajorV = 1;
public static int MinorV = 16;
public static int PatchV = 7;
public static int PatchV = 8;
public static bool Preview = false;
public static bool log = false;

Expand Down Expand Up @@ -687,15 +687,14 @@ public void StartBMBFUpdate()
Running = false;
return;
}
Process.Start("https://computerelite.github.io/tools/Oculus/AppVersions.html?id=2448060205267927");
MessageBoxResult result2 = MessageBox.Show(globalLanguage.mainMenu.code.downloadBS, "BMBF Manager - BMBF Updater", MessageBoxButton.OK, MessageBoxImage.Warning);
MessageBoxResult result3 = MessageBox.Show(globalLanguage.mainMenu.code.makingSure, "BMBF Manager - BMBF Updater", MessageBoxButton.YesNo, MessageBoxImage.Warning);
switch (result3)
OpenFileDialog dialog = new OpenFileDialog();
dialog.Filter = "Apk (*.apk)|*.apk";
txtbox.AppendText(globalLanguage.mainMenu.code.installingBS);
if(dialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
case MessageBoxResult.No:
txtbox.AppendText("\n\n" + globalLanguage.mainMenu.code.bMBFUpdatatingAbortedInstallBS);
txtbox.ScrollToEnd();
Running = false;
return;
aDBI.adb("install \"" + dialog.FileName + "\"", txtbox);
}
}
else
Expand Down Expand Up @@ -1224,4 +1223,4 @@ internal void CustomProto(string Link)
SupportWindow.StartSupport(Link);
}
}
}
}
21 changes: 13 additions & 8 deletions C#/PlaylistEditor.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -632,15 +632,20 @@ private void DelSong(object sender, RoutedEventArgs e)
txtbox.ScrollToEnd();
return;
}
MessageBoxResult r = MessageBox.Show(MainWindow.globalLanguage.processer.ReturnProcessed(MainWindow.globalLanguage.playlistEditor.code.sureDeleteSong, UnsortedPlaylist[selected + NotProcessed].SongName), "BMBF Manager - Playlist Editor", MessageBoxButton.YesNo, MessageBoxImage.Warning);
switch (r)
if(!asked)
{
case MessageBoxResult.No:
txtbox.AppendText("\n\n" + MainWindow.globalLanguage.processer.ReturnProcessed(MainWindow.globalLanguage.playlistEditor.code.deletingSongAborted, UnsortedPlaylist[selected + NotProcessed].SongName));
txtbox.ScrollToEnd();
NotProcessed++;
continue;
}
MessageBoxResult r = MessageBox.Show(MainWindow.globalLanguage.processer.ReturnProcessed(MainWindow.globalLanguage.playlistEditor.code.sureDeleteSong, UnsortedPlaylist[selected + NotProcessed].SongName), "BMBF Manager - Playlist Editor", MessageBoxButton.YesNo, MessageBoxImage.Warning);
switch (r)
{
case MessageBoxResult.No:
txtbox.AppendText("\n\n" + MainWindow.globalLanguage.processer.ReturnProcessed(MainWindow.globalLanguage.playlistEditor.code.deletingSongAborted, UnsortedPlaylist[selected + NotProcessed].SongName));
txtbox.ScrollToEnd();
NotProcessed++;
continue;
}
asked = true;
}

ADBInteractor interactor = new ADBInteractor();
string name = UnsortedPlaylist[selected + NotProcessed].SongName;
for(int i = 0; i < BMBFConfig.Config.Playlists.Count; i++)
Expand Down

0 comments on commit 195a076

Please sign in to comment.