-
Notifications
You must be signed in to change notification settings - Fork 1
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
Dev/fix warnigs #91
Dev/fix warnigs #91
Conversation
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.
Please have a look at the comments. And again, I would prefer separate PRs for warnings and for allow only one instance change. Regarding the latest, default behavior should be one instance only.
@@ -48,11 +48,12 @@ static OptionsModel() | |||
|
|||
public bool IsMaximized { get; set; } | |||
|
|||
public string LeftPanePath { get; set; } = ""; | |||
public string LeftPanePath { get; set; } = string.Empty; | |||
|
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.
I don't think that string.Empty is more readable. Would prefer to leave "" in all cases.
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.
fixed
|
||
public bool IsDarkThemeEnabled { get; set; } | ||
public bool AllowOnlyOneInstance { get; set; } |
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.
Would prefer one instance to be the behavior by default.
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.
fixed
@@ -51,10 +51,11 @@ public OptionsViewModel() | |||
ConfirmationWhenDeleteNonEmpty = Model.ConfirmationWhenDeleteNonEmpty; | |||
SaveWindowPositionSize = Model.SaveWindowPositionSize; | |||
IsDarkThemeEnabled = Model.IsDarkThemeEnabled; | |||
AllowOnlyOneInstance=Model.AllowOnlyOneInstance; |
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.
whitespaces are missing before and after =
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.
fixed
fix warnigs
fix misc issues
fix beahviour of One instance(that suppress errors in main thread)
Added option AllowOnlyOneInstance
#89