Skip to content
This repository has been archived by the owner on Feb 12, 2021. It is now read-only.

Enable/disable portable mode setting #143

Merged
merged 36 commits into from
Mar 31, 2020
Merged

Conversation

jjw24
Copy link
Owner

@jjw24 jjw24 commented Feb 20, 2020

Context:
I want to be able to change Wox to portable mode, which means I can drop it in my dropbox/cloud provider/roaming profile etc and be able to use it when I download/open it in another computer/VM with all my settings intact(except for Folder plugin's folder paths).

  • Setting to enable/disable portable mode
  • Change Wox from installed to portable mode and vice versa

Solution:
Expected code behaviour:

  1. Check if user's data is in both roaming and portable location, this can happen if user forgets to delete one of them previously when manually enabling portable mode.

  2. Create/Delete shortcuts to Wox.exe

  3. Create/Delete uninstaller entry to Wox.exe

  4. Copy user's data to the corresponding mode's data location

  5. Mark which user data location is to be deleted

  6. Prompt the user to let them know restart is required and restart automatically

  7. Delete the old user data location that is marked to be deleted

User interface:

  1. Trigger from settings portable/installed mode via clicking on check box
    image

  2. Wox is restarted automatically
    image

@jjw24 jjw24 added the enhancement New feature or request label Feb 20, 2020
@jjw24 jjw24 self-assigned this Feb 20, 2020
@jjw24 jjw24 changed the title Enable portable mode setting Enable/Disable portable mode setting Feb 20, 2020
@jjw24 jjw24 changed the title Enable/Disable portable mode setting Enable/disable portable mode setting Feb 20, 2020
- add message to inform user
- create uninstaller entry
- set delete indication
Added const for deletion indicator
Should be handled somewhere else
@jjw24 jjw24 requested a review from theClueless March 8, 2020 04:25
Copy link
Collaborator

@theClueless theClueless left a comment

Choose a reason for hiding this comment

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

added some comments

Wox.Plugin/SharedCommands/FilesFolders.cs Show resolved Hide resolved
Wox.Core/Configuration/IPortable.cs Show resolved Hide resolved
Wox.Core/Configuration/Portable.cs Outdated Show resolved Hide resolved
Wox.Core/Configuration/Portable.cs Show resolved Hide resolved
Wox.Core/Configuration/Portable.cs Outdated Show resolved Hide resolved
Wox.Infrastructure/Wox.cs Show resolved Hide resolved
Wox/ViewModel/SettingWindowViewModel.cs Show resolved Hide resolved
Wox/SettingWindow.xaml Show resolved Hide resolved
@jjw24
Copy link
Owner Author

jjw24 commented Mar 23, 2020

@theClueless please review

@jjw24 jjw24 merged commit 7e26689 into dev Mar 31, 2020
@jjw24 jjw24 deleted the add_enable_portablemode_setting branch March 31, 2020 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants