Skip to content

Commit

Permalink
fix: dark mod setting and aria2 task page navigation (cloudreve/Cloud…
Browse files Browse the repository at this point in the history
…reve#1246) (#102)

* WAV 音频在线播放

* 登录状态访问登录页面跳转主页 (cloudreve/Cloudreve#1160)

* 同步更改

* 关闭注册时隐藏注册按钮 (cloudreve/Cloudreve#1133)

* 移除历史遗留文件

* 修复用户设置中的黑暗模式按钮失效 (cloudreve/Cloudreve#1246)

* 修复离线下载-进行中-打开存放目录按钮错误 (cloudreve/Cloudreve#1246)

* Fix: Code分享预览错误 (cloudreve/Cloudreve#1251)

* Revert "Fix: Code分享预览错误 (cloudreve/Cloudreve#1251)"

This reverts commit f08c41f.
  • Loading branch information
xb2016 committed Apr 28, 2022
1 parent c59d74e commit bb7485f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/component/Download/DownloadingCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ export default function DownloadingCard(props) {
color="secondary"
onClick={() =>
history.push(
"/#/home?path=" +
"/home?path=" +
encodeURIComponent(task.dst)
)
}
Expand Down
12 changes: 8 additions & 4 deletions src/component/Setting/UserSetting.js
Original file line number Diff line number Diff line change
Expand Up @@ -584,10 +584,14 @@ class UserSettingCompoment extends Component {
handleAlignment = (event, chosenTheme) => this.setState({ chosenTheme });

toggleThemeMode = (current) => {
if (current !== null) {
this.props.toggleDaylightMode();
Auth.SetPreference("theme_mode", null);
}
const newMode =
current === null
? "light"
: current === "light"
? "dark"
: null;
this.props.toggleDaylightMode();
Auth.SetPreference("theme_mode", newMode);
};

render() {
Expand Down

0 comments on commit bb7485f

Please sign in to comment.