Skip to content
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

Merged
merged 14 commits into from
Sep 16, 2024
Merged

Dev/fix warnigs #91

merged 14 commits into from
Sep 16, 2024

Conversation

Diaskhan
Copy link
Contributor

@Diaskhan Diaskhan commented Sep 15, 2024

fix warnigs
fix misc issues
fix beahviour of One instance(that suppress errors in main thread)
Added option AllowOnlyOneInstance

#89

Copy link
Owner

@anovik anovik left a 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;

Copy link
Owner

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.

Copy link
Contributor Author

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; }
Copy link
Owner

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.

Copy link
Contributor Author

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;
Copy link
Owner

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 =

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

@anovik anovik merged commit e7c4cc7 into anovik:main Sep 16, 2024
2 checks passed
@Diaskhan Diaskhan deleted the dev/fix_warnigs branch September 16, 2024 11:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants