Skip to content

Commit

Permalink
Fix serious bugs related to theme manager
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Aug 23, 2018
1 parent aadda1b commit cccc183
Show file tree
Hide file tree
Showing 8 changed files with 32 additions and 23 deletions.
3 changes: 2 additions & 1 deletion src/AboutDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/AppContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ private void EnforceSingleInstance()
if (!isFirstInstance)
{
MessageBox.Show("Another instance of WinDynamicDesktop is already running. " +
"You can access it by right-clicking the icon in the system tray.", "Error",
"You can access it by clicking on the icon in the system tray.", "Error",
MessageBoxButtons.OK, MessageBoxIcon.Warning);

Environment.Exit(0);
Expand Down Expand Up @@ -82,7 +82,7 @@ public static void RunInBackground()
{
notifyIcon.BalloonTipTitle = "WinDynamicDesktop";
notifyIcon.BalloonTipText = "The app is still running in the background. " +
"You can access it at any time by right-clicking on this icon.";
"You can access it at any time by clicking on the icon in the system tray.";
notifyIcon.ShowBalloonTip(10000);

JsonConfig.firstRun = false; // Don't show this message again
Expand Down
7 changes: 4 additions & 3 deletions src/InputDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 7 additions & 1 deletion src/JsonConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,12 @@ public static void LoadConfig()
{
lastJson = File.ReadAllText("settings.conf");
settings = JsonConvert.DeserializeObject<AppConfig>(lastJson);

// TEMPORARY HACK TO FIX BUG INTRODUCED IN LAST VERSION
if (settings.themeName == "")
{
settings.themeName = "Mojave_Desert";
}
}
}

Expand Down Expand Up @@ -71,7 +77,7 @@ public static ThemeConfig LoadTheme(string name)
}
else
{
themeJson = File.ReadAllText(name + ".json");
themeJson = File.ReadAllText(Path.Combine("themes", name + ".json"));
}

ThemeConfig theme = JsonConvert.DeserializeObject<ThemeConfig>(themeJson);
Expand Down
2 changes: 1 addition & 1 deletion src/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyVersion("2.0.1")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
27 changes: 14 additions & 13 deletions src/ThemeDialog.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/ThemeDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private void darkModeCheckbox_CheckedChanged(object sender, EventArgs e)

private void okButton_Click(object sender, EventArgs e)
{
JsonConfig.settings.themeName = listView1.SelectedItems[0].Name.Replace(' ', '_');
JsonConfig.settings.themeName = listView1.SelectedItems[0].Text.Replace(' ', '_');

if (selectedIndex > 0)
{
Expand Down
2 changes: 1 addition & 1 deletion uwp/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Package xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10" IgnorableNamespaces="uap mp rescap desktop">
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="2.0.0.0" />
<Identity Name="38719TimothyJohnson.WinDynamicDesktop" Publisher="CN=3C822DA5-D64C-40A9-A84A-5502C3EDD8CD" Version="2.0.1.0" />
<Properties>
<DisplayName>WinDynamicDesktop</DisplayName>
<PublisherDisplayName>Timothy Johnson</PublisherDisplayName>
Expand Down

0 comments on commit cccc183

Please sign in to comment.