Skip to content

Add Import/Export functionality for settings and configurations#424

Merged
unchihugo merged 3 commits intounchihugo:masterfrom
FaroJoaoFaro:master
Feb 28, 2026
Merged

Add Import/Export functionality for settings and configurations#424
unchihugo merged 3 commits intounchihugo:masterfrom
FaroJoaoFaro:master

Conversation

@FaroJoaoFaro
Copy link
Contributor

This intends to add the functionality of import and export settings file as described and requested on issue #336

FaroJoaoFaro and others added 2 commits February 27, 2026 22:49
This intends to add the functionality of import and export settings file as described and requested on issue unchihugo#336
master from head repo to my repo
@github-actions github-actions bot added the SettingsWindow Changes to SettingsWindow or settings pages not related to flyouts/widgets label Feb 27, 2026
Copy link
Owner

@unchihugo unchihugo left a comment

Choose a reason for hiding this comment

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

Hi @FaroJoaoFaro, thank you for working on this! Looks great so far.

I'm not able to review this on my computer atm, so I'm just commenting based on what I can see in code. I have some thoughts before we merge:

  1. The new import and export methods look very similar to the existing restore and save methods. Is there a way to perhaps consolidate them to reuse the code instead?
  2. I see you've added null conditions to the messagebox strings, which is great but actually isn't necessary in our case: the resource dictionary key will never be null because we have a fallback mechanic that guarantees English backup strings. (You might've picked this up from other areas of the code but honestly they should be removed as well.)

Could you please address those things? Other than that though, it looks great!

…ngs logic

instead of using the ExportSettings and ImportSettings we can reuse the functions RestoreSettings and SaveSettings

also removed null conditions on the messagebox strings
@FaroJoaoFaro
Copy link
Contributor Author

1- You were completely right! Totally usable; Thanks!
2- Yeah I didn't know we didn't need those conditions. I saw them in the same file above and that's why I used them also. I now removed all of those.
(previous ones, not mines, were on lines 45 and 86 on 'FluentFlyoutWPF/Pages/HomePage.xaml.cs'

Hope this is good!

Copy link
Owner

@unchihugo unchihugo left a comment

Choose a reason for hiding this comment

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

Hi, looks perfect now! I'm just going to edit the location of the options to be in Settings > System (I think it's more appropriate there), hope you don't mind!

@unchihugo unchihugo linked an issue Feb 28, 2026 that may be closed by this pull request
2 tasks
@unchihugo unchihugo merged commit bc840d0 into unchihugo:master Feb 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

SettingsWindow Changes to SettingsWindow or settings pages not related to flyouts/widgets

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE REQUEST] Add Import/Export functionality for settings and configurations

2 participants