Skip to content

Commit

Permalink
Fix since version and add skipUserPath too.
Browse files Browse the repository at this point in the history
  • Loading branch information
wengxt committed Apr 20, 2024
1 parent 04ef14b commit 9d12781
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
5 changes: 5 additions & 0 deletions src/lib/fcitx-utils/standardpath.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -725,4 +725,9 @@ bool StandardPath::skipBuiltInPath() const {
return d->skipBuiltIn();
}

bool StandardPath::skipUserPath() const {
FCITX_D();
return d->skipUser();
}

} // namespace fcitx
11 changes: 9 additions & 2 deletions src/lib/fcitx-utils/standardpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ class FCITXUTILS_EXPORT StandardPath {
* @param builtInPath this will override the value from fcitxPath.
* @param skipBuiltInPath skip built-in path
* @param skipUserPath skip user path, useful when doing readonly-test.
* @since 5.1.8
* @since 5.1.9
*/
StandardPath(
const std::string &packageName,
Expand Down Expand Up @@ -370,10 +370,17 @@ class FCITXUTILS_EXPORT StandardPath {
* In portable environment (Install prefix is not fixed), this should be
* set to false.
*
* @since 5.1.8
* @since 5.1.9
*/
bool skipBuiltInPath() const;

/**
* Whether this StandardPath is configured to Skip user path.
*
* @since 5.1.9
*/
bool skipUserPath() const;

private:
std::unique_ptr<StandardPathPrivate> d_ptr;
FCITX_DECLARE_PRIVATE(StandardPath);
Expand Down

0 comments on commit 9d12781

Please sign in to comment.