aboutsummaryrefslogtreecommitdiff
path: root/source/WindowsFormsApplication1/Appscape.cs
diff options
context:
space:
mode:
Diffstat (limited to 'source/WindowsFormsApplication1/Appscape.cs')
-rw-r--r--source/WindowsFormsApplication1/Appscape.cs16
1 files changed, 10 insertions, 6 deletions
diff --git a/source/WindowsFormsApplication1/Appscape.cs b/source/WindowsFormsApplication1/Appscape.cs
index d4fc945..a482a04 100644
--- a/source/WindowsFormsApplication1/Appscape.cs
+++ b/source/WindowsFormsApplication1/Appscape.cs
@@ -498,6 +498,10 @@ namespace ShiftOS
/// <param name="client">The client to add to.</param>
public void GenerateNewDevKey(AppscapeClient client)
{
+ if(client.DevList == null)
+ {
+ client.DevList = new Dictionary<string, AppscapeModder>();
+ }
var rnd = new Random();
int key = rnd.Next(1, 99999999);
var dev = new AppscapeModder();
@@ -741,14 +745,14 @@ namespace ShiftOS
{
if(lvnets.SelectedItems.Count > 0)
{
- try
- {
+ //try
+ //{
GenerateNewDevKey((AppscapeClient)lvnets.SelectedItems[0].Tag);
- }
- catch
+ /*}
+ catch (Exception ex)
{
- API.CreateInfoboxSession("Error", "An error has occurred trying to process the request.", infobox.InfoboxMode.Info);
- }
+ API.CreateInfoboxSession("Error", "An error has occurred trying to process the request: {ex.Message}", infobox.InfoboxMode.Info);
+ }*/
}
}
}