Skip to content

Commit

Permalink
update prompt
Browse files Browse the repository at this point in the history
resolve #68
  • Loading branch information
lin-ycv committed Dec 17, 2023
1 parent 8528993 commit a84d81c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ Dev instructions are in the wiki.
#### Install instructions
1. Download the latest release from [here](https://github.com/lin-ycv/EverythingPowerToys/releases/latest).
2. Unzip.
3. Copy the `Everything` folder to `C:\Program Files\PowerToys\RunPlugins` or `%LOCALAPPDATA%\PowerToys\RunPlugins`.
3. Copy the `Everything` folder to `C:\Program Files\PowerToys\RunPlugins` or `%LOCALAPPDATA%\Microsoft\PowerToys\PowerToys Run\Plugins\`.
4. Restart PowerToys.

#### Requirements
Expand Down
6 changes: 3 additions & 3 deletions Update.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ internal Update(Version v, Settings s)
Version latest = Version.Parse(doc.GetElementsByTagName("title")[0].InnerXml.Split(':', StringSplitOptions.TrimEntries)[1].AsSpan(1));
if (latest > v && latest.ToString() != s.Skip)
{
MessageBoxResult mbox = MessageBox.Show($"New version available for EverythingPowerToys.\n\nInstalled:\t {v}\nLatest:\t {latest}", "Download Update?", MessageBoxButton.OKCancel);
if (mbox == MessageBoxResult.OK)
MessageBoxResult mbox = MessageBox.Show($"New version available for EverythingPowerToys.\nClicking 'No' will disable future notice for this version.\n\nInstalled:\t {v}\nLatest:\t {latest}", "Download Update?", MessageBoxButton.YesNoCancel);
if (mbox == MessageBoxResult.Yes)
{
ProcessStartInfo p = new ProcessStartInfo("https://github.com/lin-ycv/EverythingPowerToys/releases/latest")
{
Expand All @@ -28,7 +28,7 @@ internal Update(Version v, Settings s)
};
Process.Start(p);
}
else
else if (mbox == MessageBoxResult.No)
{
s.Skip = latest.ToString();
}
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"IsGlobal": true,
"Name": "Everything",
"Author": "Yu Chieh (Victor) Lin",
"Version": "0.76.1",
"Version": "0.76.2",
"Language": "csharp",
"Website": "https://github.com/Lin-ycv/EverythingPowerToys",
"ExecuteFileName": "Community.PowerToys.Run.Plugin.Everything.dll",
Expand Down

0 comments on commit a84d81c

Please sign in to comment.