mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-05-29 17:46:29 +03:00
Added an option to reset panel layout (SpartanJ/ecode#675).
Added options to "Reset Global File Associations" and "Reset Project File Associations" (renamed the command names too).
This commit is contained in:
@@ -562,6 +562,19 @@ void App::downloadFileWebDialog() {
|
||||
} );
|
||||
}
|
||||
|
||||
void App::resetPanelsPartitions() {
|
||||
if ( mProjectSplitter ) {
|
||||
mConfig.windowState.panelPartition = "15%";
|
||||
mProjectSplitter->setSplitPartition(
|
||||
StyleSheetLength( mConfig.windowState.panelPartition ) );
|
||||
}
|
||||
if ( mMainSplitter ) {
|
||||
mConfig.windowState.statusBarPartition = "85%";
|
||||
mMainSplitter->setSplitPartition(
|
||||
StyleSheetLength( mConfig.windowState.statusBarPartition ) );
|
||||
}
|
||||
}
|
||||
|
||||
void App::downloadFileWeb( const std::string& url ) {
|
||||
UIDownloadWindow::downloadFileWeb( url );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user