Skip to content

Commit

Permalink
feat: 修改图标
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed May 14, 2023
1 parent a1ace2b commit 25a750e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions plugins/publisher-main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default class PublishTool extends Plugin {

const menu = new Menu("topBarSample")
menu.addItem({
icon: "iconInfo",
icon: "iconSettings",
label: this.i18n.setting,
click: () => {
this._showSettingDialog()
Expand All @@ -52,7 +52,7 @@ export default class PublishTool extends Plugin {

menu.addSeparator()
menu.addItem({
icon: "iconInfo",
icon: "iconTransform",
label: this.i18n.publisherWidget,
click: () => {
this._showPublisherWidget()
Expand Down Expand Up @@ -129,8 +129,6 @@ export default class PublishTool extends Plugin {

const publisherIndex = `/widgets/sy-post-publisher/index.html`

console.log(this.env)
console.log(this.env.isDev())
if (deviceType == DeviceTypeEnum.DeviceType_Siyuan_MainWin) {
import("/plugins/publish-tool/lib/bridge/index.js" as any).then((bridge) => {
const publisherBridge = new bridge.default()
Expand All @@ -147,8 +145,7 @@ export default class PublishTool extends Plugin {
// const widgetId = "1111111"
// const pageUrl = "detail/index.html"

// win.syp.renderPublishHelper(pageId, pageUrl, win, this.env.isDev())
win.syp.renderPublishHelper(pageId, pageUrl, win, true)
win.syp.renderPublishHelper(pageId, pageUrl, win, this.env.isDev())
console.log("publisherHook inited")
})
})
Expand Down

0 comments on commit 25a750e

Please sign in to comment.