Set dev true

This commit is contained in:
Jaex 2020-08-31 08:03:50 +03:00
parent 2e35136f53
commit 61553ecd38
4 changed files with 9 additions and 5 deletions

View file

@ -181,7 +181,9 @@ public List<PushbulletDevice> GetDeviceList()
PushbulletResponseDevices devicesResponse = JsonConvert.DeserializeObject<PushbulletResponseDevices>(response);
if (devicesResponse != null && devicesResponse.devices != null)
return devicesResponse.devices.Where(x => !String.IsNullOrEmpty(x.nickname)).Select(x1 => new PushbulletDevice { Key = x1.iden, Name = x1.nickname }).ToList();
{
return devicesResponse.devices.Where(x => !string.IsNullOrEmpty(x.nickname)).Select(x1 => new PushbulletDevice { Key = x1.iden, Name = x1.nickname }).ToList();
}
return new List<PushbulletDevice>();
}

View file

@ -799,8 +799,10 @@ public void PushbulletGetDevices()
Config.PushbulletSettings.DeviceList.ForEach(pbDevice =>
{
if (!String.IsNullOrEmpty(pbDevice.Name))
if (!string.IsNullOrEmpty(pbDevice.Name))
{
cboPushbulletDevices.Items.Add(pbDevice.Name);
}
});
cboPushbulletDevices.SelectedIndex = 0;

View file

@ -78,7 +78,7 @@ public static string VersionText
public static string TitleLong => $"{Title} ({Build})";
public static bool Dev { get; } = false;
public static bool Dev { get; } = true;
public static bool MultiInstance { get; private set; }
public static bool Portable { get; private set; }
public static bool PortableApps { get; private set; }

View file

@ -30,5 +30,5 @@ You should have received a copy of the GNU General Public License
[assembly: AssemblyProduct("ShareX")]
[assembly: AssemblyCopyright("Copyright (c) 2007-2020 ShareX Team")]
[assembly: ComVisible(false)]
[assembly: AssemblyVersion("13.2.0")]
[assembly: AssemblyFileVersion("13.2.0")]
[assembly: AssemblyVersion("13.2.1")]
[assembly: AssemblyFileVersion("13.2.1")]