Skip to content

Commit

Permalink
Merge pull request #56 from JuckZ/develop
Browse files Browse the repository at this point in the history
fix: test release
  • Loading branch information
JuckZ authored Dec 17, 2024
2 parents 6097066 + 141e570 commit 115a173
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,6 @@ electron_mirror=https://npmmirror.com/mirrors/electron/
# https_proxy=http://localhost:7890
shamefully-hoist=true
strict-peer-dependencies=false
# 本地仓库 - 开发
# registry=http://localhost:4873
# @yithub:registry=http://localhost:4873
4 changes: 2 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export default class AwesomeBrainManagerPlugin extends Plugin {
icon: 'alarm-clock',
clickFn: async (menu: Menu, editor: Editor, info: MarkdownView | MarkdownFileInfo) => {
this.app.workspace.detachLeavesOfType(POMODORO_HISTORY_VIEW);
await this.app.workspace.getRightLeaf(false).setViewState({
await this.app.workspace.getRightLeaf(false)?.setViewState({
type: POMODORO_HISTORY_VIEW,
active: true,
});
Expand Down Expand Up @@ -611,7 +611,7 @@ export default class AwesomeBrainManagerPlugin extends Plugin {
});
obsidianManagerPomodoroStatusBar.onClickEvent(async evt => {
this.app.workspace.detachLeavesOfType(POMODORO_HISTORY_VIEW);
await this.app.workspace.getRightLeaf(false).setViewState({
await this.app.workspace.getRightLeaf(false)?.setViewState({
type: POMODORO_HISTORY_VIEW,
active: true,
});
Expand Down

0 comments on commit 115a173

Please sign in to comment.