We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 733326b commit 7a6edd0Copy full SHA for 7a6edd0
Wox/ViewModel/SettingWindowViewModel.cs
@@ -57,29 +57,14 @@ public bool PortableMode
57
if (!_portable.CanUpdatePortability())
58
return;
59
60
- bool switchToPortable;
61
- if(DataLocation.PortableDataLocationInUse())
+ if (DataLocation.PortableDataLocationInUse())
62
{
63
- switchToPortable = false;
+ _portable.DisablePortableMode();
64
}
65
else
66
67
- switchToPortable = true;
+ _portable.EnablePortableMode();
68
69
-
70
- PortabilityUpdate(switchToPortable);
71
- }
72
73
74
- private void PortabilityUpdate(bool enablePortableMode)
75
- {
76
- if (enablePortableMode)
77
78
- _portable.EnablePortableMode();
79
80
- else
81
82
- _portable.DisablePortableMode();
83
84
85
0 commit comments