mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-05-31 17:34:14 +02:00
Fix missing spaces in C#/F# code
This commit is contained in:
parent
bd0be65038
commit
19f104239a
Core
Updates
@ -9,7 +9,7 @@ public enum Environment{
|
||||
|
||||
public static string GenerateScript(Environment environment){
|
||||
static string Bool(bool value) => value ? "true;" : "false;";
|
||||
static string Str(string value) => '"'+value+"\";";
|
||||
static string Str(string value) => $"\"{value}\";";
|
||||
|
||||
UserConfig config = Program.Config.User;
|
||||
StringBuilder build = new StringBuilder(128).Append("(function(x){");
|
||||
|
@ -30,7 +30,7 @@ public static bool IsFullyOutsideView(this Form form){
|
||||
}
|
||||
|
||||
public static void MoveToCenter(this Form targetForm, Form parentForm){
|
||||
targetForm.Location = new Point(parentForm.Location.X+parentForm.Width/2-targetForm.Width/2, parentForm.Location.Y+parentForm.Height/2-targetForm.Height/2);
|
||||
targetForm.Location = new Point(parentForm.Location.X + (parentForm.Width / 2) - (targetForm.Width / 2), parentForm.Location.Y + (parentForm.Height / 2) - (targetForm.Height / 2));
|
||||
}
|
||||
|
||||
public static void SetValueInstant(this ProgressBar bar, int value){
|
||||
|
@ -77,7 +77,7 @@ public TabSettingsNotifications(FormNotificationExample notification){
|
||||
comboBoxDisplay.Items.Add("(Same as TweetDuck)");
|
||||
|
||||
foreach(Screen screen in Screen.AllScreens){
|
||||
comboBoxDisplay.Items.Add(screen.DeviceName.TrimStart('\\', '.')+" ("+screen.Bounds.Width+"x"+screen.Bounds.Height+")");
|
||||
comboBoxDisplay.Items.Add($"{screen.DeviceName.TrimStart('\\', '.')} ({screen.Bounds.Width}x{screen.Bounds.Height})");
|
||||
}
|
||||
|
||||
comboBoxDisplay.SelectedIndex = Math.Min(comboBoxDisplay.Items.Count - 1, Config.NotificationDisplay);
|
||||
|
@ -12,7 +12,7 @@ public FormUpdateDownload(UpdateInfo info){
|
||||
this.updateInfo = info;
|
||||
|
||||
Text = "Updating " + Program.BrandName;
|
||||
labelDescription.Text = "Downloading version "+info.VersionTag+"...";
|
||||
labelDescription.Text = $"Downloading version {info.VersionTag}...";
|
||||
timerDownloadCheck.Start();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user