Skip to content

Commit e54c91d

Browse files
committed
formatting
1 parent 6da3ca5 commit e54c91d

File tree

2 files changed

+8
-25
lines changed

2 files changed

+8
-25
lines changed

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@
2121
using Flow.Launcher.Infrastructure.Hotkey;
2222
using Flow.Launcher.Plugin.SharedCommands;
2323
using System.Windows.Threading;
24-
using System.Globalization;
25-
using System.Reflection.Emit;
2624
using System.Windows.Data;
27-
using System.Diagnostics;
2825

2926
namespace Flow.Launcher
3027
{
@@ -58,7 +55,6 @@ public MainWindow()
5855
{
5956
InitializeComponent();
6057
}
61-
6258

6359
private void OnCopy(object sender, ExecutedRoutedEventArgs e)
6460
{

Flow.Launcher/SettingWindow.xaml.cs

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,23 @@
1-
using Droplex;
2-
using Flow.Launcher.Core.ExternalPlugins;
3-
using Flow.Launcher.Core.Plugin;
1+
using Flow.Launcher.Core.Plugin;
42
using Flow.Launcher.Core.Resource;
53
using Flow.Launcher.Helper;
64
using Flow.Launcher.Infrastructure;
75
using Flow.Launcher.Infrastructure.Hotkey;
8-
using Flow.Launcher.Infrastructure.Logger;
96
using Flow.Launcher.Infrastructure.UserSettings;
107
using Flow.Launcher.Plugin;
118
using Flow.Launcher.Plugin.SharedCommands;
129
using Flow.Launcher.ViewModel;
13-
using Microsoft.Win32;
1410
using ModernWpf;
1511
using System;
1612
using System.IO;
17-
using System.Linq;
1813
using System.Windows;
19-
using System.Windows.Controls;
2014
using System.Windows.Data;
2115
using System.Windows.Forms;
2216
using System.Windows.Input;
2317
using System.Windows.Interop;
24-
using System.Windows.Media;
2518
using System.Windows.Navigation;
2619
using Button = System.Windows.Controls.Button;
2720
using Control = System.Windows.Controls.Control;
28-
using ListViewItem = System.Windows.Controls.ListViewItem;
2921
using KeyEventArgs = System.Windows.Input.KeyEventArgs;
3022
using MessageBox = System.Windows.MessageBox;
3123
using TextBox = System.Windows.Controls.TextBox;
@@ -467,33 +459,28 @@ private void PluginStore_OnKeyDown(object sender, KeyEventArgs e)
467459
}
468460
}
469461

470-
471-
private void ColorSchemeSelectedIndexChanged(object sender, SelectionChangedEventArgs e)
472-
{
473-
474-
}
475-
476462
private void PreviewClockAndDate(object sender, RoutedEventArgs e)
477463
{
478464
ClockDisplay();
479465
}
480466
public void ClockDisplay()
481467
{
482-
if (settings.UseClock == true)
468+
if (settings.UseClock)
483469
{
484470
ClockBox.Visibility = Visibility.Visible;
485-
ClockBox.Text = System.DateTime.Now.ToString(settings.TimeFormat);
471+
ClockBox.Text = DateTime.Now.ToString(settings.TimeFormat);
486472
}
487-
else if (settings.UseClock == false)
473+
else
488474
{
489475
ClockBox.Visibility = Visibility.Collapsed;
490476
}
491-
if (settings.UseDate == true)
477+
478+
if (settings.UseDate)
492479
{
493480
DateBox.Visibility = Visibility.Visible;
494-
DateBox.Text = System.DateTime.Now.ToString(settings.DateFormat);
481+
DateBox.Text = DateTime.Now.ToString(settings.DateFormat);
495482
}
496-
else if (settings.UseDate == false)
483+
else
497484
{
498485
DateBox.Visibility = Visibility.Collapsed;
499486
}

0 commit comments

Comments
 (0)