mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-11 01:01:25 +03:00
eepp: Added UIImageViewer new tool widget to view images.
Added a new UIMessageBox event: `Event::OnDiscard`, this will triggered when window is closed without confirmation (`Event::OnConfirm`). And now `Event::OnCancel` is only triggered when is manually cancelled (click the cancel button). ecode: Greatly improved image viewing experience. Now you can switch images from the same directory with the mouse wheel, also zoom, translate and rotate the images, images open in a new tab by default but quick-preview can be activated in `Settings -> Window -> Quick Preview Images` (SpartanJ/ecode#96).
This commit is contained in:
@@ -236,7 +236,7 @@ void SettingsActions::setIndentTabCharacter() {
|
||||
msgBoxAlert->setCloseShortcut( { KEY_ESCAPE, 0 } );
|
||||
}
|
||||
} );
|
||||
msgBox->on( Event::OnCancel, [this]( const Event* ) {
|
||||
msgBox->on( Event::OnDiscard, [this]( const Event* ) {
|
||||
String txt = String::fromUtf8( mApp->getConfig().editor.tabIndentCharacter );
|
||||
if ( txt.size() != 1 )
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user