-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FZ Editor] Open settings #13727
[FZ Editor] Open settings #13727
Conversation
@check-spelling-bot ReportUnrecognized words, please review:
Previously acknowledged words that are now absentAccessible available CIEXYZ coc CTriage dchristensen djsoref docsmsft dogancelik dupenv estdir Fody ftp ftps gmx htt ianjoneill inprivate installpowertoys itsme jakeoeding KERNELBASE listbox mfreadwrite mfuuid Nefario nitroin null nunit powertoyswiki PROGRAMFILES Radiobuttons sidepanel spamming systray ulazy windevbuildagents winstore xia XSmall xunitSome files were were automatically ignoredThese sample patterns would exclude them:
You should consider adding them to:
File matching is via Perl regular expressions. To check these files, more of their words need to be in the dictionary than not. You can use To accept these unrecognized words as correct (and remove the previously acknowledged and now absent words), run the following commands... in a clone of the [email protected]:microsoft/PowerToys.git repository
If you see a bunch of garbageIf it relates to a ... well-formed patternSee if there's a pattern that would match it. If not, try writing one and adding it to the Patterns are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your lines. Note that patterns can't match multiline strings. binary-ish stringPlease add a file path to the File paths are Perl 5 Regular Expressions - you can test yours before committing to verify it will match your files.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Icons are a no-go
@niels9001
|
Yes, you're right. I though it was related to a namespace but it was a var name with a typo :). Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
{ | ||
var assemblyPath = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location); | ||
var fullPath = Directory.GetParent(assemblyPath).FullName; | ||
Process.Start(new ProcessStartInfo(fullPath + "\\..\\PowerToys.exe") { Arguments = "--open-settings=FancyZones" }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
guard this block (all 3 lines) with try/catch clause and log it, it can throw multiple exceptions.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@SeraphimaZ I added a try catch block, what is the code for log events in FZ editor?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@niels9001 there isn't any logger in the FZ editor yet.
Only unhandled exceptions are saved in a file.
PowerToys/src/modules/fancyzones/editor/FancyZonesEditor/App.xaml.cs
Lines 214 to 225 in 0ca9b1b
private void OnUnhandledException(object sender, UnhandledExceptionEventArgs args) | |
{ | |
var fileStream = File.OpenWrite(CrashReportLogFile); | |
using (var sw = new StreamWriter(fileStream)) | |
{ | |
sw.Write(FormatException((Exception)args.ExceptionObject)); | |
} | |
fileStream.Close(); | |
ShowReportMessageBox(fileStream.Name); | |
} |
Summary of the Pull Request
This PR introduces a settings button in the FancyZones editor to quickly open Settings: #7408
How does someone test / validate:
Quality Checklist
Contributor License Agreement (CLA)
A CLA must be signed. If not, go over here and sign the CLA.