Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
benji300 committed Mar 28, 2021
1 parent 0e8f331 commit 83305ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import joplin from 'api';
import { MenuItem, MenuItemLocation } from 'api/types';
import { ChangeEvent } from 'api/JoplinSettings';
import { Settings, DefaultKeys } from './settings';
import { DefaultKeys, SettingDefaults, Settings } from './settings';
import { DA } from './data';

joplin.plugins.register({
Expand All @@ -17,7 +17,7 @@ joplin.plugins.register({
//#region HELPERS

async function quickMoveToFolder(actionId: number, quickMoveFolderId: string, noteIds: string[]) {
if (quickMoveFolderId === undefined || quickMoveFolderId === '0') return;
if (quickMoveFolderId === undefined || quickMoveFolderId === SettingDefaults.Empty) return;

// get selected note ids and return if empty
let selectedNoteIds = noteIds;
Expand Down
4 changes: 2 additions & 2 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export enum DefaultKeys {
* Advanced style setting default values.
* Used when setting is set to 'default'.
*/
enum SettingDefaults {
export enum SettingDefaults {
Empty = '0',
Default = 'default',
FontFamily = 'Roboto',
Expand Down Expand Up @@ -177,7 +177,7 @@ export class Settings {
section: 'qm.settings',
public: true,
label: 'Keep moved note selected',
description: 'If the selected note is moved via one of the move actions, it is still selected afterwards. ' +
description: 'If the selected note is moved via one of the quick move actions, it is still selected afterwards. ' +
'Otherwise, the next note within the current notebook is selected. ' +
'If several notes have been moved, the last one remains selected.'
});
Expand Down

0 comments on commit 83305ca

Please sign in to comment.