mirror of
https://github.com/ShareX/ShareX.git
synced 2024-09-30 01:07:21 +13:00
Set dev true
This commit is contained in:
parent
2e35136f53
commit
61553ecd38
4 changed files with 9 additions and 5 deletions
|
@ -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>();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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; }
|
||||
|
|
|
@ -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")]
|
Loading…
Reference in a new issue