mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 13:26:46 +00:00
#220 - fixed menu > file > "search images"
This commit is contained in:
parent
a80d2a617f
commit
11624bfbc5
@ -46,7 +46,7 @@ const menuDefinition = [
|
||||
{
|
||||
name: 'Search Images',
|
||||
ellipsis: true,
|
||||
target: 'file/search.search'
|
||||
target: 'file/open.search'
|
||||
},
|
||||
{
|
||||
divider: true
|
||||
|
||||
@ -7,6 +7,7 @@ import Helper_class from './../../libs/helpers.js';
|
||||
import Clipboard_class from './../../libs/clipboard.js';
|
||||
import alertify from './../../../../node_modules/alertifyjs/build/alertify.min.js';
|
||||
import EXIF from './../../../../node_modules/exif-js/exif.js';
|
||||
import GUI_tools_class from "../../core/gui/gui-tools";
|
||||
|
||||
var instance = null;
|
||||
|
||||
@ -29,6 +30,7 @@ class File_open_class {
|
||||
this.Base_layers = new Base_layers_class();
|
||||
this.Base_gui = new Base_gui_class();
|
||||
this.Helper = new Helper_class();
|
||||
this.GUI_tools = new GUI_tools_class();
|
||||
|
||||
//clipboard class
|
||||
this.Clipboard_class = new Clipboard_class(function (data, w, h) {
|
||||
@ -557,6 +559,10 @@ class File_open_class {
|
||||
|
||||
return exif_data;
|
||||
}
|
||||
|
||||
search(){
|
||||
this.GUI_tools.activate_tool('media');
|
||||
}
|
||||
}
|
||||
|
||||
export default File_open_class;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user