Skip to content

Commit 47a78b1

Browse files
committed
Merge last missing commits from Flow-Launcher#3593
1 parent 63a0ab2 commit 47a78b1

File tree

6 files changed

+380
-199
lines changed

6 files changed

+380
-199
lines changed

Flow.Launcher.Core/Resource/LocalizedDescriptionAttribute.cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

Flow.Launcher.Core/Resource/Theme.cs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,19 @@ public bool ChangeTheme(string theme = null)
433433
}
434434
return false;
435435
}
436-
catch (XamlParseException)
436+
catch (XamlParseException e)
437437
{
438-
_api.LogError(ClassName, $"Theme <{theme}> fail to parse");
438+
_api.LogException(ClassName, $"Theme <{theme}> fail to parse xaml", e);
439+
if (theme != Constant.DefaultTheme)
440+
{
441+
_api.ShowMsgBox(Localize.theme_load_failure_parse_error(theme));
442+
ChangeTheme(Constant.DefaultTheme);
443+
}
444+
return false;
445+
}
446+
catch (Exception e)
447+
{
448+
_api.LogException(ClassName, $"Theme <{theme}> fail to load", e);
439449
if (theme != Constant.DefaultTheme)
440450
{
441451
_api.ShowMsgBox(Localize.theme_load_failure_parse_error(theme));

Flow.Launcher/Resources/Controls/CustomScrollViewerEx.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
using iNKORE.UI.WPF.Modern.Controls;
2-
using iNKORE.UI.WPF.Modern.Controls.Helpers;
3-
using iNKORE.UI.WPF.Modern.Controls.Primitives;
4-
using System;
1+
using System;
52
using System.Windows;
63
using System.Windows.Controls;
74
using System.Windows.Input;
5+
using iNKORE.UI.WPF.Modern.Controls;
6+
using iNKORE.UI.WPF.Modern.Controls.Helpers;
7+
using iNKORE.UI.WPF.Modern.Controls.Primitives;
88

99
namespace Flow.Launcher.Resources.Controls
1010
{
11+
// TODO: Use IsScrollAnimationEnabled property in future: https://github.com/iNKORE-NET/UI.WPF.Modern/pull/347
1112
public class CustomScrollViewerEx : ScrollViewer
1213
{
1314
private double LastVerticalLocation = 0;

0 commit comments

Comments
 (0)